Skip to content
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 Fails to Run After Cloning Repo #897

Open
gabrielliwerant opened this issue Dec 23, 2023 · 0 comments
Open

Storybook Fails to Run After Cloning Repo #897

gabrielliwerant opened this issue Dec 23, 2023 · 0 comments

Comments

@gabrielliwerant
Copy link

What is the current behavior?

After cloning repo and running npm install, npm run storybook errors out.

What is the expected behavior?

Storybook should finish loading and allow viewing in broswer.

Could you provide a CodeSandbox demo reproducing the bug?

Error output is as follows:

ERR! TypeError: Cannot read property 'includes' of undefined
ERR!     at MiniCssExtractPlugin.apply (C:\Repos\react-transition-group\node_modules\mini-css-extract-plugin\dist\index.js:87:42)
ERR!     at webpack (C:\Repos\react-transition-group\node_modules\@storybook\builder-webpack4\node_modules\webpack\lib\webpack.js:51:13)
ERR!     at starterGeneratorFn (C:\Repos\react-transition-group\node_modules\@storybook\builder-webpack4\dist\cjs\index.js:137:18)
ERR!     at starterGeneratorFn.next (<anonymous>)
ERR!     at Object.start (C:\Repos\react-transition-group\node_modules\@storybook\builder-webpack4\dist\cjs\index.js:275:34)
ERR!     at async Promise.all (index 0)
ERR!     at async storybookDevServer (C:\Repos\react-transition-group\node_modules\@storybook\core-server\dist\cjs\dev-server.js:203:28)
ERR!     at async buildDevStandalone (C:\Repos\react-transition-group\node_modules\@storybook\core-server\dist\cjs\build-dev.js:120:31)
ERR!     at async buildDev (C:\Repos\react-transition-group\node_modules\@storybook\core-server\dist\cjs\build-dev.js:174:5)
ERR!  TypeError: Cannot read property 'includes' of undefined
ERR!     at MiniCssExtractPlugin.apply (C:\Repos\react-transition-group\node_modules\mini-css-extract-plugin\dist\index.js:87:42)
ERR!     at webpack (C:\Repos\react-transition-group\node_modules\@storybook\builder-webpack4\node_modules\webpack\lib\webpack.js:51:13)
ERR!     at starterGeneratorFn (C:\Repos\react-transition-group\node_modules\@storybook\builder-webpack4\dist\cjs\index.js:137:18)
ERR!     at starterGeneratorFn.next (<anonymous>)
ERR!     at Object.start (C:\Repos\react-transition-group\node_modules\@storybook\builder-webpack4\dist\cjs\index.js:275:34)
ERR!     at async Promise.all (index 0)
ERR!     at async storybookDevServer (C:\Repos\react-transition-group\node_modules\@storybook\core-server\dist\cjs\dev-server.js:203:28)
ERR!     at async buildDevStandalone (C:\Repos\react-transition-group\node_modules\@storybook\core-server\dist\cjs\build-dev.js:120:31)
ERR!     at async buildDev (C:\Repos\react-transition-group\node_modules\@storybook\core-server\dist\cjs\build-dev.js:174:5) {
ERR!   stack: "TypeError: Cannot read property 'includes' of undefined\n" +
ERR!     '    at MiniCssExtractPlugin.apply (C:\\Repos\\react-transition-group\\node_modules\\mini-css-extract-plugin\\dist\\index.js:87:42)\n' +
ERR!     '    at webpack (C:\\Repos\\react-transition-group\\node_modules\\@storybook\\builder-webpack4\\node_modules\\webpack\\lib\\webpack.js:51:13)\n' +
ERR!     '    at starterGeneratorFn (C:\\Repos\\react-transition-group\\node_modules\\@storybook\\builder-webpack4\\dist\\cjs\\index.js:137:18)\n' +
ERR!     '    at starterGeneratorFn.next (<anonymous>)\n' +
ERR!     '    at Object.start (C:\\Repos\\react-transition-group\\node_modules\\@storybook\\builder-webpack4\\dist\\cjs\\index.js:275:34)\n' +
ERR!     '    at async Promise.all (index 0)\n' +
ERR!     '    at async storybookDevServer (C:\\Repos\\react-transition-group\\node_modules\\@storybook\\core-server\\dist\\cjs\\dev-server.js:203:28)\n' +
ERR!     '    at async buildDevStandalone (C:\\Repos\\react-transition-group\\node_modules\\@storybook\\core-server\\dist\\cjs\\build-dev.js:120:31)\n' +
ERR!     '    at async buildDev (C:\\Repos\\react-transition-group\\node_modules\\@storybook\\core-server\\dist\\cjs\\build-dev.js:174:5)'
ERR! }

Error occurs on running git clone, npm install and npm run storybook on master, commit 2989b5b87b4b4d1001f21c8efa503049ffb4fe8d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant