Skip to content
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

Weirdness in importing contrib extensions #188

Open
kzlar opened this issue Aug 13, 2024 · 1 comment
Open

Weirdness in importing contrib extensions #188

kzlar opened this issue Aug 13, 2024 · 1 comment

Comments

@kzlar
Copy link

kzlar commented Aug 13, 2024

Following up from discord: https://discord.com/channels/933657521581858818/1212676471588520006/1272947534960001054

In short: Using vscode, node and trying to import pg_tgrm, the following:
import { pg_trgm } from '@electric-sql/pglite/contrib/pg_trgm' works but has a type issue in vscode Cannot find module '@electric-sql/pglite/contrib/pg_trgm' or its corresponding type declarations
The following:
import { pg_trgm } from '@electric-sql/pglite/dist/contrib/pg_trgm' does not have type issues but fails when running with node Missing "./dist/contrib/pg_trgm" specifier in "@electric-sql/pglite" package

I think the first option should work but some type export config is likely wrong?

@summer-boythink
Copy link

image

I use import { pg_trgm } from '@electric-sql/pglite/contrib/pg_trgm',Didn't seem to find a problem.

Can you give an example of a recurring bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants