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

[website] init function fails on mjs error #3405

Open
felixmosh opened this issue May 1, 2023 · 3 comments
Open

[website] init function fails on mjs error #3405

felixmosh opened this issue May 1, 2023 · 3 comments

Comments

@felixmosh
Copy link

image

@fturmel
Copy link
Member

fturmel commented May 3, 2023

Looks like the latest release's Babel runtime addition broke the CDN. Heads up @kossnocorp @Andarist

While waiting for a fix, you can type the last known working version explicitly in the init function: init('v2.29.3')

Screenshot 2023-05-03 at 10 33 48 AM

@Andarist
Copy link

Andarist commented May 3, 2023

Oh, I didn't realize that the website would load a file from the package with a dynamic import without processing this anyhow.

I see 2 options here:

  • prepare a special build for the website that would bundle external deps
  • use Skypack (or similar) over unpkg as it's a CDN that should be able to resolve this kind of stuff. I just tested it and import('https://cdn.skypack.dev/date-fns') works just OK

@felixmosh
Copy link
Author

Or loading the umd bundle of date-fns

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

No branches or pull requests

3 participants