-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: Cannot build storybook packages: Cannot use import statement outside a module #28593
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically
{
"type": "module"
} Alternatively, rename References/scripts/build-package.ts
|
When developing under Windows make sure to use WSL2. The development of Storybook on Windoes directly is not officially supported. Furthermore, you have to use Node.js 18 for development due to a bug in esbuild-register. |
Right, this seems to be egoist/esbuild-register#96. This project seems to be semi-dead, perhaps it would be a good moment to migrate to an actively developed ts runtime. |
We are on it migrating to bun: #28046 |
Describe the bug
Checking out the
next
branch and runningyarn build
in thecode
folder yields (with Node.js v22.4.1):Reproduction link
No reproduction
Reproduction steps
See above
System
Additional context
Maybe using a ts runtime with esm support like jiti could solve this, see also https://github.com/privatenumber/ts-runtime-comparison
The text was updated successfully, but these errors were encountered: