question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest release broke storybook

See original GitHub issue

In the latest release (about 2 hours ago since the time of writing this), storybook broke if users upgrade to the latest version of this package.

It seems that the virtual-modules-plugin we use is not compatible with this change: https://www.npmjs.com/package/webpack-virtual-modules

We see the following error happening in our CI:

ERR! => Failed to build the preview
ERR! Module not found: Error: Can't resolve '/tmp/storybook/sandbox/angular-cli-13-ts/storybook-config-entry.js' in '/tmp/storybook/sandbox/angular-cli-13-ts'
ERR! /tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compilation.js:2016
ERR! 					const notFoundError = new ModuleNotFoundError(
ERR! 					                      ^
ERR! 
ERR! ModuleNotFoundError: Module not found: Error: Can't resolve '/tmp/storybook/sandbox/angular-cli-13-ts/storybook-config-entry.js' in '/tmp/storybook/sandbox/angular-cli-13-ts'
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/Compilation.js:2016:28)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:798:13)
ERR!     at eval (eval at create (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/tapable/lib/HookCodeFactory.js:28:14), <anonymous>:10:1)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:270:22)
ERR!     at eval (eval at create (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/tapable/lib/HookCodeFactory.js:28:14), <anonymous>:9:1)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:434:22)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:116:11)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:670:25)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:855:8)
ERR!     at <anonymous> (/tmp/storybook/sandbox/angular-cli-13-ts/node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModuleFactory.js:975:5)

link to CI

The file .../storybook-config-entry.js, is injected as a virtual module using the plugin described above.

When we version lock to 5.10.0 the problem goes away.

comparing 5.10.0 & 5.11.0: https://github.com/webpack/enhanced-resolve/compare/v5.10.0...v5.11.0

It looks like this code was added: { throwIfNoEntry: false } link to change

Looks like it was introduced in this PR: https://github.com/webpack/enhanced-resolve/pull/324

@markjm @sokra Do you have any recommendations for us?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:45
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
ndelangencommented, Nov 23, 2022

I’ll open a PR that reverts this change, hopefully @sokra can take a look soon.

6reactions
ndelangencommented, Nov 23, 2022

would it be possible to roll this back?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases · storybookjs/storybook - GitHub
Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation. - Releases ......
Read more >
Storybook 6 Migration Guide
This step-by-step guide gets you upgraded to Storybook 6.0 (SB6). Every year we release a major version of Storybook. Last Spring, that was ......
Read more >
Broken build with updated Storybook (5.3) Configuration
Broken build with updated Storybook (5.3) Configuration. Hello, I am having issues publishing to my DSM after making the changes listed here ...
Read more >
Scorched Treachery (Imdalind Series): Ethington, Rebecca
Follow authors to get new release updates, plus improved recommendations. ... Scorched Treachery is the third book in The Imdalind Series Clean Young-Adult ......
Read more >
React: Upgrading to Storybook 6 - Nx
x to Nx versions >10.2.x (using the Nx migration script - nx migrate ) we will keep your Storybook packages and Storybook instances...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found