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

Failed to import - react-svg-spinners #512

Closed
marcushultman opened this issue Jan 30, 2023 · 4 comments
Closed

Failed to import - react-svg-spinners #512

marcushultman opened this issue Jan 30, 2023 · 4 comments
Labels
deno Not working in Deno

Comments

@marcushultman
Copy link
Contributor

Failing module

import { NinetyRing } from 'https://esm.sh/[email protected]';

Error message

After running deno run I got this:

error: Uncaught (in promise) SyntaxError: The requested module 'https://esm.sh/[email protected]' does not provide an export named 'NinetyRing'
  await import(entrypoint);

Additional info

  • esm.sh version: v106
  • Deno version: 1.30.0
@marcushultman marcushultman added the deno Not working in Deno label Jan 30, 2023
@marcushultman
Copy link
Contributor Author

default import seems to work. It contains all components on a POJO.

@ije ije closed this as completed in 8daa9e5 Jan 30, 2023
@ije
Copy link
Member

ije commented Jan 30, 2023

the server can not resolve the cjs exports correctly, so i just added ?cjs-export option as workaround for it

@ije
Copy link
Member

ije commented Jan 30, 2023

try

import { NinetyRing, NinetyRingWithBg } from "https://esm.sh/[email protected]?cjs-exports=NinetyRing,NinetyRingWithBg"

@marcushultman
Copy link
Contributor Author

@ije Amazing! Thank you for the quick turn-around.

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

No branches or pull requests

2 participants