-
-
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
@storybook/vue v6.1.x build failure #13209
Comments
Do you have a repro repo you can share? |
No, it's not public. Sorry. |
Same on version 6.1.2. WARN Failed to load preset: "/Users/husiyuan/dev/my-app/node_modules/_@[email protected]@@storybook/core/dist/server/manager/manager-preset.js"
ERR! Error: Cannot find module 'react/package.json'
ERR! Require stack:
ERR! - /Users/husiyuan/dev/my-app/node_modules/_@[email protected]@@storybook/ui/noop.js
ERR! at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
ERR! at resolveFileName (/Users/husiyuan/dev/my-app/node_modules/[email protected]@resolve-from/index.js:29:39)
ERR! at resolveFrom (/Users/husiyuan/dev/my-app/node_modules/[email protected]@resolve-from/index.js:43:9)
ERR! at module.exports (/Users/husiyuan/dev/my-app/node_modules/[email protected]@resolve-from/index.js:46:47)
ERR! at Object.<anonymous> (/Users/husiyuan/dev/my-app/node_modules/_@[email protected]@@storybook/ui/paths.js:17:18)
ERR! at Module._compile (internal/modules/cjs/loader.js:1063:30)
ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
ERR! at Module.load (internal/modules/cjs/loader.js:928:32)
ERR! at Function.Module._load (internal/modules/cjs/loader.js:769:14)
ERR! at Module.require (internal/modules/cjs/loader.js:952:19)
ERR! at require (internal/modules/cjs/helpers.js:88:18)
ERR! at Object.<anonymous> (/Users/husiyuan/dev/my-app/node_modules/_@[email protected]@@storybook/core/dist/server/manager/manager-webpack.config.js:34:38)
ERR! at Module._compile (internal/modules/cjs/loader.js:1063:30)
ERR! at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
ERR! at Module.load (internal/modules/cjs/loader.js:928:32)
ERR! at Function.Module._load (internal/modules/cjs/loader.js:769:14)
ERR! Error: Cannot find module 'react/package.json' |
storybook MacOS Big Sur 11.0.1 |
I was on storybook 6.0.28 and I had a message that the 6.1.3 was available. |
Did you try removing |
In my case, I just removed node_modules folder as I didn't want having other packages being updated. Just wanted to see performance improuvment |
Great Caesar's ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.4 containing PR #13230 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
@shilman I'm not sure if this requires a new issue or re-opening this one, but I had the same problem as the author except in React (
It seems to get stuck at 94% and not move from there. It's rather unclear where the source of this issue is as I don't reference |
@shilman Sorry for being the bearer of bad news, but I still have the same problem.
Error still occurs And it now also got stuck at 94% as @michaelaflores mentioned. Reverting to |
I ran
|
@scheinercc Can you upgrade and try again |
Works like a charm! Thanks a lot |
same here System: |
I think mine is a peer dependency issue. Not sure how to resolve it. |
@jonwilliams-bluescape you're still seeing this bug? |
@shilman I'm running into the same problem. I've tried clearing
and ends with
(I've edited folder names) |
I moved my storybook setup inside one of the packages in our mono repo (per the engineer who manages the build and such) and the issue went away. I’d been attempting from the project root. |
happening again with 6.1.7 |
adding react and react-dom to our peer dependencies seems to have solved the issue |
Running into the identical issue as @maheshjag reverting to 6.0.7 got me back up and running |
Does anybody have a repro repo they can share? |
@shilman I can't share unfortunately, as the repo is a private one. However, I could share the list of other packages that are used in the project, if that's of any use? |
I ran into the same problem with storybook 6.1.9. I resolved it by just doing npm install -d react-dom, which wasn't in my dependencies list previously. |
Same issue here. |
Having the same issue with |
Installing peer dependencies worked for me. |
I had the exact same issue upgrading to |
Facing this same issue, I have react and react-dom as peer dependency |
Describe the bug
After upgrading from 6.0.28 to 6.1.2 (also tried with 6.1.0) results in a build failure.
To Reproduce
Steps to reproduce the behavior:
"@storybook/addon-viewport": "6.1.2",
"@storybook/addon-actions": "6.1.2",
"@storybook/addon-docs": "6.1.2",
"@storybook/addon-knobs": "6.1.2",
"@storybook/addon-links": "6.1.2",
"@storybook/addon-storysource": "6.1.2",
"@storybook/addons": "6.1.2",
"@storybook/vue": "6.1.2",
yarn storybook
Error in browser:
Cannot GET /
Code snippets
System
The text was updated successfully, but these errors were encountered: