-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Failed to import - pg (https://www.npmjs.com/package/pg) #684
Comments
Does esm.sh even work with bindings actually? |
I believe no. Node gyp bindings will eventually try to use __filename / __dirname (depends on how code is written/generated by devs) and will try to load node native addon file. I think esm.sh doesn't run the build task that generates native node addon, and it would ofc depend on different cpu architecture and whether deno supports napi or not. I think it's beyond the scope of esm.sh to support native node addons. |
Figured out it works using the This package also says it supports a pure javascript implementation without the bindings |
@ije any input on this not currently able to use the |
@bryiac i will check |
Failing module
Error message
After running
deno run
I got this:After updating the import to "https://esm.sh/pg?cjs-exports=Client" I got this:
Additional info
The text was updated successfully, but these errors were encountered: