Open tobiasdiez opened 1 month ago
Disclaimer This information might be inaccurate, due to it being generated automatically
To resolve the issue, update the package.json
in the scripts
directory to include the "type": "module"
field.
scripts/package.json
.{
"type": "module"
}
Alternatively, rename build-package.ts
to build-package.mjs
.
/scripts/build-package.ts /package.json
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 https://github.com/egoist/esbuild-register/issues/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: https://github.com/storybookjs/storybook/pull/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