-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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: ReferenceError: self is not defined when importing from npm module in Deno 1.45.3 #24726
Comments
It appears that this package doesn't really target Node as per comments here: https://github.com/sqlite/sqlite-wasm/issues?q=is%3Aissue+self+is%3Aclosed. That said, it's unfortunate that it will stop working and there's no workaround to it. |
I published a forked version of the faulty package without the "self" reference : https://www.npmjs.com/package/@eliaspourquoi/sqlite-node-wasm It's a quick fix waiting for the owners to approve the merge of sqlite/sqlite-wasm#48. |
I don't think we should revert #24637 as the snippet fails in Node.js with the exact same reason. I think this should be addressed in #24683 is not exactly the same issue. #24683 is about the descriptor of |
I'm goign to close this as this is not a bug in Deno, but in this package. Deno just happens to follow Node behaviour more closely, so the package that was previously working now fails (like on Node) |
I encountered an issue when upgrading from Deno 1.45.2 to 1.45.3. The following code throws an error in version 1.45.3, while it worked perfectly in 1.45.2.
Code
Error
Steps to Reproduce
Expected Behavior
The import should work without any errors, as it did in Deno 1.45.2.
Actual Behavior
The import throws a
ReferenceError: self is not defined
.Environment
@sqlite.org/sqlite-wasm
version: 3.46.0-build2Additional Information
Rolling back to Deno 1.45.2 resolves the issue, so it seems to be specific to the 1.45.3 release.
Please let me know if you need any additional information or if there are any workarounds for this issue. Thank you!
The text was updated successfully, but these errors were encountered: