-
Notifications
You must be signed in to change notification settings - Fork 106
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
Unable to load from fresh installation #161
Comments
Hmmm, I haven't seen this one before. Can you try version 0.1.8 of the builder? |
Hmm when using npm is doesn't hoist all of the @storybook dependencies because The fix I made in #160 assumes all versions of storybook are the same which is why it's breaking now. |
Ny workaround for this? Can I use a specific version maybe? |
Yes, you can use version 0.1.8 if that's working for you. |
Nope then I'm back with this issue #157 |
We'll be releasing 6.4 final very soon (later this week? early next?) which should hopefully help with this issue! |
As a workaround, add the following to your
If you are using
See #161 (comment) below. |
@scott-lc thanks but didn't do the trick I'm afraid. Tried both with rc 2 and rc 5, as well as both npx npm-force-install and npx force install commands. |
Confirming that this issue is still present in fresh installs. Adding the resolutions section doesn't fix the issue. |
@AleaIsHere Are you using npm? |
The issue still exists, but the Run either Ah, with
|
I think the issue others are facing is due to not including the second |
@joshwooding I deleted my node_modules and npm installed again however I haven't used |
@scott-lc could you share your package.json where you got it to work using npm? |
I've tried both
and
The IGNORED_EXCEPTION doesnt go away. running npm-why ( https://github.com/amio/npm-why ) shows that all is the same version. @shilman Also tried rc-7 now, can confirm it doesnt work either. |
@olemarius can you share your repo or create a reproduction repo for us to investigate? It's difficult to troubleshoot this kind of issue from afar, unfortunately. |
OK I've managed to reproduce myself. I think it might be because this project has a dependency on
But I'm using In the meantime, for those having this issue, you can modify your
Otherwise, just remove it entirely:
Or, if you're hitting #157, maybe try updating the |
The pertinent section of my {
// ...
"devDependencies": {
"@storybook/addon-a11y": "6.4.0-rc.6",
"@storybook/addon-docs": "6.4.0-rc.6",
"@storybook/addon-essentials": "6.4.0-rc.6",
"@storybook/addon-links": "6.4.0-rc.6",
"@storybook/react": "6.4.0-rc.6",
"@vitejs/plugin-react": "^1.1.0",
"storybook-builder-vite": "^0.1.9",
"typescript": "^4.4.4",
"vite": "^2.6.14"
},
"resolutions": {
"@storybook/csf-tools": "6.4.0-rc.6",
"@storybook/source-loader": "6.4.0-rc.6",
"@storybook/core-events": "6.4.0-rc.6"
}
} |
Another quick solution is simply to remove the old Storybook dependencies by entirely deleting the |
That's perfectly fine for testing things out, but it's not really a scalable solution for anyone with a team, or who does npm installations on a regular basis, or runs storybooks in ci, etc. :) |
@IanVS I think reverting is a good call for now. This is really only an issue because we are trying to support 6.3 and 6.4 at the same time. |
…ages (#160)" (#166) This reverts commit 5100593. As discussed in #161 (comment)
Thanks everyone for the discussion. This issue should be taken care of in v0.1.10. If you're still experiencing problems that isn't covered by an existing issue, please open a new one with details of what you're seeing. |
@scott-lc your package.json worked, thanks! |
Here is the package.json
The error
I started the project using this and choosing the react option.
The text was updated successfully, but these errors were encountered: