Describe the bug
In a freshly created directory, if you npm init and then npx sb init, you can get Storybook to run. As soon as you npm i -D webpack and run npm run storybook, storybook no longer works, even if you remove webpack from your package.json and remove all node_modules and reinstall.
To Reproduce
Run the following commands:
mkdir project
cd project
npm init
npx sb init
npm i -D lit-html
npm run storybook
// Choose the configuration for Web Components
// After installing, storybook runs fine
npm i -D webpack
npm run storybook
// Errors galore
vim package.json
// Remove webpack from your devDependencies
rm -rf node_modules
npm i
npm run storybook
// Errors galore and you can't ever run storybook again.
Describe the bug In a freshly created directory, if you
npm init
and thennpx sb init
, you can get Storybook to run. As soon as younpm i -D webpack
and runnpm run storybook
, storybook no longer works, even if you removewebpack
from your package.json and remove all node_modules and reinstall.To Reproduce Run the following commands:
System
Additional context After installing
webpack
and even removing it, you can no longer runnpm run storybook
as there will always be lots of errors.I also tried running
npx webpack config
which built the file and that still results in the same errors.