-
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
[Bug]: Cannot find module identifier-utils #252
Comments
Update: I reproduced it on Gentoo as well. |
Hi @Bobini1! Could you confirm if changing Node.js version to On both OS system, Windows and any of Linux distributions. |
The problem is here, I probably missed this in my recent import conversion. We need to find a lint rule or tsconfig setting that stops this from happening, by ensuring that all imports have proper file extensions. We could experiment with |
It's a little frustrating that the error has no mention of a missing file extension. 😞 In order to confirm, I've manually edited those imports inside the In the end, working with Node SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: ./.storybook/main.js.
Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
If you believe this is a bug, please open an issue on Github.
SB_CORE-SERVER_0002 (CriticalPresetLoadError): Storybook failed to load the following preset: ./node_modules/.pnpm/@storybook+addon-svelte-csf@5.0.0-next.21_@storybook+svelte@8.4.7_storybook@8.4.7_svelte@5.15_l2uyyyw2pmvgj3flsyqrsufeme/node_modules/@storybook/addon-svelte-csf/dist/preset.js.
Please check whether your setup is correct, the Storybook dependencies (and their peer dependencies) are installed correctly and there are no package version clashes.
If you believe this is a bug, please open an issue on Github.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in ./node_modules/.pnpm/@storybook+addon-svelte-csf@5.0.0-next.21_@storybook+svelte@8.4.7_storybook@8.4.7_svelte@5.15_l2uyyyw2pmvgj3flsyqrsufeme/node_modules/@storybook/node-logger/package.json imported from ./node_modules/.pnpm/@storybook+addon-svelte-csf@5.0.0-next.21_@storybook+svelte@8.4.7_storybook@8.4.7_svelte@5.15_l2uyyyw2pmvgj3flsyqrsufeme/node_modules/@storybook/addon-svelte-csf/dist/compiler/post-transform/story/insert-description.js
at exportsNotFound (node:internal/modules/esm/resolve:314:10)
at packageExportsResolve (node:internal/modules/esm/resolve:604:13)
at packageResolve (node:internal/modules/esm/resolve:774:12)
at moduleResolve (node:internal/modules/esm/resolve:854:18)
at defaultResolve (node:internal/modules/esm/resolve:984:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:654:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:603:25)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:353:53)
at new ModuleJobSync (node:internal/modules/esm/module_job:341:34)
at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:413:11)
More info:
at loadPreset (./node_modules/.pnpm/@storybook+core@8.4.7/node_modules/@storybook/core/dist/common/index.cjs:16477:13) Which will be fixed once this one lands: storybookjs/storybook#30093 |
It was |
This command |
Had the same error and this worked for me, thanks! |
Describe the bug
On a project freshly set up with
npx sv create app
, runningpnpm run storybook
yields the following scary errors and fails!Reproduction link
https://github.com/Bobini1/broken-storybook-example
Reproduction steps
npx sv create app
Leave everything default except selecting storybook
cd app
npm run storybook
System
Additional context
It worked on Windows but I can't run it on Arch.
The text was updated successfully, but these errors were encountered: