-
Notifications
You must be signed in to change notification settings - Fork 32
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
Module errors when running in storybook 7.1 #111
Comments
Thanks for reporting. For my own sanity I've confirmed that this is indeed broken in this fresh sandbox: https://stackblitz.com/edit/github-i91vd4?file=package.json Using |
You can use imperative imports in CJS, but you can't use import statements, so the dist is wrong/ I'm not aware of how this works in 7.0. |
Hey, again. Just trying to figure out how I can be helpful here. It sounds like the whole build system needs a refresh. I can try to take that on in a branch with tsup. But I am quite sure I will be slower to figure things out than someone who already knows their way around this repo. But if there's no one left, I will endeavour it. Keen to get this working with the new 7.1. |
🚀 Issue was released in |
Describe the bug
This may be a mite early, but this add-on errors with module issues on [email protected]. See logs below.
Couple things looked odd to me: Seems a little weird that the
cjs
build of the add-on is usingimport
statements. I also notice the package.json doesn't declare anyexports
.Steps to reproduce the behavior
npm run dev
Expected behavior
Should not throw module errors.
Screenshots and/or logs
Environment
The text was updated successfully, but these errors were encountered: