You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Running 'start-storybook' opens storybook but throws error before any stories are loaded:
args.js?v=5fe384f6:56 Uncaught SyntaxError: The requested module '/node_modules/lodash/isPlainObject.js?v=5fe384f6' does not provide an export named 'default'
To Reproduce
I've been able to make it work again by running lerna clean (I'm using lerna), deleting package-lock files, testing to run the project's vite serve command first, but I haven't been able to identify exactly what makes it work again once getting the error. It seems very random.
System npx sb@next info prompts me to install it.
Storybook 6.4.13 on Windows using storybook-builder-vite 0.1.13
The text was updated successfully, but these errors were encountered:
Adding to optimizeDeps resolved some errors, but then I just get the next.. I'm thinking this might be an issue with the bundler, storybook-builder-vite?
Uncaught SyntaxError: The requested module '/node_modules/@storybook/csf/dist/index.js?v=5898ea95' does not provide an export named 'storyNameFromExport'
config.optimizeDeps.include = [
...(config.optimizeDeps?.include ?? []),
// adding the ones that causes error here seems to work, but it seems it's a problem for a lot of dependencies?
'lodash/isPlainObject',
'lodash/mapValues',
'util-deprecate',
];```
Describe the bug
Running 'start-storybook' opens storybook but throws error before any stories are loaded:
args.js?v=5fe384f6:56 Uncaught SyntaxError: The requested module '/node_modules/lodash/isPlainObject.js?v=5fe384f6' does not provide an export named 'default'
To Reproduce
I've been able to make it work again by running lerna clean (I'm using lerna), deleting package-lock files, testing to run the project's vite serve command first, but I haven't been able to identify exactly what makes it work again once getting the error. It seems very random.
System
npx sb@next info
prompts me to install it.Storybook 6.4.13 on Windows using storybook-builder-vite 0.1.13
The text was updated successfully, but these errors were encountered: