WebpackOptionsValidationError: Invalid configuration object #17028
Unanswered
stepanstaniek
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Failed to start
yarn run storybook
. Please suggest the resolution.Process of execution is
`yarn run v1.22.10
$ start-storybook -p 6006
info @storybook/react v6.4.9
info
info => Loading presets
info Found existing addon "@storybook/addon-docs", skipping.
info => Using implicit CSS loaders
info => Using default Webpack4 setup
ERR! WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
ERR! - configuration.entry should not contain the item '/Users/stepan/Downloads/lib-ui/node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js' twice.
ERR! -> A non-empty array of non-empty strings
ERR! at webpack (/Users/stepan/Downloads/lib-ui/node_modules/webpack/lib/webpack.js:31:9)
ERR! at Object.start (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/builder-webpack4/dist/cjs/index.js:92:18)
ERR! at async Promise.all (index 0)
ERR! at async storybookDevServer (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/core-server/dist/cjs/dev-server.js:126:28)
ERR! at async buildDevStandalone (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/core-server/dist/cjs/build-dev.js:115:31)
ERR! at async buildDev (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/core-server/dist/cjs/build-dev.js:161:5)
ERR! WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
ERR! - configuration.entry should not contain the item '/Users/stepan/Downloads/lib-ui/node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js' twice.
ERR! -> A non-empty array of non-empty strings
ERR! at webpack (/Users/stepan/Downloads/lib-ui/node_modules/webpack/lib/webpack.js:31:9)
ERR! at Object.start (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/builder-webpack4/dist/cjs/index.js:92:18)
ERR! at async Promise.all (index 0)
ERR! at async storybookDevServer (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/core-server/dist/cjs/dev-server.js:126:28)
ERR! at async buildDevStandalone (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/core-server/dist/cjs/build-dev.js:115:31)
ERR! at async buildDev (/Users/stepan/Downloads/lib-ui/node_modules/@storybook/core-server/dist/cjs/build-dev.js:161:5)
WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
error Command failed with exit code 1.`
Package.json is configured as
{ "name": "lib-ui", "private": true, "devDependencies": { "@babel/core": "^7.16.0", "@emotion/react": "^11.7.1", "@mui/base": "^5.0.0-alpha.60", "@mui/system": "^5.2.4", "@storybook/addon-actions": "6.4.9", "@storybook/addon-essentials": "6.4.9", "@storybook/addon-links": "6.4.9", "@storybook/react": "6.4.9", "babel-loader": "^8.2.3", "lerna": "^4.0.0", "react": "^17.0.2", "react-dom": "^17.0.2" }, "dependencies": {}, "scripts": { "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook" } }
Beta Was this translation helpful? Give feedback.
All reactions