builder-vite: Unable to load from fresh installation
Here is the package.json
The error
I started the project using this and choosing the react option.
npm init @vitejs/app vite-react-app --template react && cd vite-react-app
npm install # or yarn
npx sb@next init --builder storybook-builder-vite && npm run storybook
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (8 by maintainers)
@olemarius
The pertinent section of my
package.jsonis: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.
I think the issue others are facing is due to not including the second
npm install. If anyone is looking to use npm-force-resolutions I’d advise reading the usage guide: https://www.npmjs.com/package/npm-force-resolutions@olemarius
As a workaround, add the following to your
package.jsonfile:If you are using
yarnjust re-install:yarn install; it automatically handles the “resolutions” field. If you are usingnpm, runnpx npm-force-resolutions(and again after any change to your dependencies.) and then runnpm installSee https://github.com/eirslett/storybook-builder-vite/issues/161#issuecomment-976987545 below.
We’ll be releasing 6.4 final very soon (later this week? early next?) which should hopefully help with this issue!
Nope then I’m back with this issue https://github.com/eirslett/storybook-builder-vite/issues/157