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

The requested module does not provide an export named 'default' #2407

Closed
JesusTheHun opened this issue Jun 20, 2021 · 2 comments
Closed

The requested module does not provide an export named 'default' #2407

JesusTheHun opened this issue Jun 20, 2021 · 2 comments

Comments

@JesusTheHun
Copy link

I reported an issue that occured in storybook using the brand new storybook-builder-vite .

This issue is most likely related to the use of the fantastic esbuild.

Current behavior:

Starting the storybook, no error appear in the console, when we open the storybook in the browser we received this error :

Uncaught SyntaxError: The requested module '/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js?v=403370d2' does not provide an export named 'default'
Coming from emotion-theming.browser.esm.js?v=403370d2.

To reproduce:

I think just using emotion and try to run it with esbuild would trigger the error

Expected behavior:

No error

Environment information:

  • react version: 17.0.1
  • @emotion/react version: 11.1.4
@Andarist
Copy link
Member

Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given.

@Andarist
Copy link
Member

Andarist commented May 3, 2023

Given that no repro has been given here, I can't be sure what this issue is about. It's either related to misconfigured tooling or it might be fixed with #3029 . It's hard to tell but I'm inclined to close the issue right now until more info is given here.

@Andarist Andarist closed this as completed May 3, 2023
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

2 participants