-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
unpkg.com browser Error: Uncaught RefereceError: exports is not defined #75
Comments
You should report this to unpkg. I am not familiar with their build system, it could be their error. We support deno, webpack, browserify, rollup, standalone file, etc -- hard to ensure everything works properly. |
unpkg.com is run by npmjs.com and is their automated CDN service. NPM supports a I think something like I do not mean to make a big deal out of it, just I would like to import using |
I can change package.json, but did you actually test the change? I don't want to do a broken release |
I did a test deployment and submitted a PR. No need to merge, just demonstrating the minor changes to get it working with NPM's unpkg CDN. See here: |
v2.0 will be unpkg-friendly |
Hello. I am getting this error when trying to import the library into the browser, from the following URL:
https://unpkg.com/@noble/secp256k1@1.7.0
I do not get this problem when I import the file from the github releases page, or locally from my machine.
I think there may be a mis-configuration somewhere (package.json?), as unpkg.com is not properly hosting a browser version of the file , even though it seems to work fine when I import the file from other sources.
This is not a critical issue. I thought to bring it up since unpkg.com is useful as a CDN, and it would be nice to pull a working version from there.
The text was updated successfully, but these errors were encountered: