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

skypack cdn does not provide an export named 'normaliseInput' #802

Closed
lukeyounge opened this issue Nov 17, 2021 · 6 comments
Closed

skypack cdn does not provide an export named 'normaliseInput' #802

lukeyounge opened this issue Nov 17, 2021 · 6 comments

Comments

@lukeyounge
Copy link

This import is causing an error since yesterday

import { NFTStorage } from 'https://cdn.skypack.dev/nft.storage'

Error is

Uncaught SyntaxError: The requested module '/-/[email protected]/dist=es2019,mode=imports/unoptimized/src/files/normalise-input/index.js' does not provide an export named 'normaliseInput'

@dchoi27
Copy link
Contributor

dchoi27 commented Nov 19, 2021

Hey there - we're tracking the issue with skypack here: multiformats/js-multiformats#115 Sorry for the inconvenience!

@lukeyounge
Copy link
Author

lukeyounge commented Nov 19, 2021 via email

@lukeyounge
Copy link
Author

So - is there any way around this issue at the moment? Just trying to use the blob file

@glebsexy
Copy link

Try setting the version to 3.4.0 (https://www.npmjs.com/package/nft.storage) seems like it works. In store.html: import { NFTStorage } from 'https://cdn.skypack.dev/[email protected]'

@alanshaw
Copy link
Contributor

alanshaw commented Dec 3, 2021

Unfortunately we're still working through the skypack issues, but in the mean time you can import the prebuilt bundle in the browser from https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle.esm.min.js

@dchoi27
Copy link
Contributor

dchoi27 commented Dec 10, 2021

Closing, let us know if you have any issues!

@dchoi27 dchoi27 closed this as completed Dec 10, 2021
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

4 participants