-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error loading uuid_ossp extensions #453
Comments
There are some |
Hello, I’m encountering the same issue as described earlier. Specifically, I’m trying to import Primary IssueWhen attempting to import uuid_ossp, I get the following error:
Attempted FixI tried adding the following configuration in my Jest setup: transformIgnorePatterns: ['node_modules/(?!(@electric-sql/pglite)/)'] However, this resulted in a new error:
Reproduction StepsI also attempted to reproduce the issue using the test examples in the import { uuid_ossp } from '../../dist/contrib/uuid_ossp.d.ts'; This yielded the same Environment:
Thank you for investigating this issue. Please let me know if you need more details! |
manage to know what's going on you must import from |
Hey,
Version:
@electric-sql/pglite": "^0.2.14
I'm trying to setup PGLite in my typeorm project for testing. I'm using jest + SWC. The error that I'm getting is
The setup
This is my tsconfig
SWC config
Dont know why I need to import the uuid extensions from
/dist
(this is not what's shown in the docs)Also, I tried to add this to jest config
and that error goes away but the import is an empty object
seems kind of an issue of ESmodule , but after a long time I didn't find the issue and not sure if it's up to me or some misconfiguration in the packages.
Any clue?
Thanks in advance
The text was updated successfully, but these errors were encountered: