-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: UnhandledSchemeError with storyStoreV7 feature turned off #22091
Comments
This definitely looks like a windows-specific bug in our webpack implementation or its interactions with your configuration, and we'd love to debug it. Do you a have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏 |
This is really windows-specific, I've added reproduction steps above. There is another one, actually. If you locally create a Storybook project with
|
same experience - with error like |
As @vyprichenko and @MirKml said, we got the same issues here into a monorepo environment (Turborepo) |
experiencing the same when trying to start a local build, will be following for a development |
Also have the same issue, bringing Storybook 6.4 to 7+ ModuleBuildError: Module build failed: c:\Users\andyn\Documents\github\pow_frontend\node_modules\webpack\lib\NormalModule.js:795
UnhandledSchemeError: Reading from "C:UsersandynDocumentsgithubpow_frontend |
For now, I'm able to work around this by updating
I would guess that a proper fix should be simple. I might have time to look next week if no one beats me to it |
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.16 containing PR #22512 that references this issue. Upgrade today to the
|
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.11 containing PR #22512 that references this issue. Upgrade today to the
|
Describe the bug
I'm in a process of migration from Storybook 6.4.19 to 7.0.4. Previously I've updated Webpack from 4.44.2 to 5.78.0 and did not face any issues in my project (but without extensive testing, just compiled and checked stories rendering).
Now, thanks to comprehensive migration guide and auto-migration tools, I've almost completed Storybook v6 -> v7 process, but got stuck with an issue, strangely similar to the one, elder: #16365 (comment)
My problem is also related to storyStoreV7 feature flag.
Setting
storyStoreV7: false
breaks build process:To Reproduce
This is a starter project, created from a "React v17 Webpack (TypeScript)" template:
https://stackblitz.com/edit/github-g9ilis?file=.storybook/main.ts
Minimal changes were made for reproduction:
features: { storyStoreV7: false }
to Storybook config.Now this still perfectly works in stackblitz.com environment, but when I download the same project, install and run on a Windows machine
yarn storybook
breaks with an UnhandledSchemeError, as described above.Worth mentioning that
yarn build
works without a problem on Windows too.System
Additional context
My attention is drawn to the line "C:UsersVyprichsource ... eact". Debugging shows that issue originates from webpack/lib/NormalModule.js where loaders are applied. The process fails on
@storybook/webpack
module (no problem with other modules), and I can see thatprocessResource
callback is called with strangeresourcePath
argument value:"C:UsersVyprichsource\reposAvtoProStorybook\node_modules@storybook\react"
which is obviously not correct, and "context" field of a loader context is filled with the same value. Example of the right path to another module (in the same build process) on my system is"C:\\Users\\Vyprich\\source\\repos\\AvtoProStorybook\\node_modules\\@storybook\\react\\preview.js-generated-config-entry.js"
.Webpack treats "C:UsersVyprichsource..." module path like an URL with "c:" scheme and requires some special loader for it.
main.js (reduced):
Any help would be appreciated, thanks!
The text was updated successfully, but these errors were encountered: