You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webpack-virtual-modules@^0.2.0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.2.1.tgz#8ab73d4df0fd37ed27bb8d823bc60ea7266c8bf7"
integrity sha512-0PWBlxyt4uGDofooIEanWhhyBOHdd+lr7QpYNDLC7/yc5lqJT8zlc04MTIBnKj+c2BlQNNuwE5er/Tg4wowHzA==
Command
It's a Rails project that I'm working on, so I encountered this issue while Rails is performing a $ yarn check with my webpacker gem versioned at 4.2.2 installed.
I've tried different ways to try make it work, including removing the webpack-virtual-modules entry from yarn.lock and run yarn install, reinstall @storybook/react, even tried removed node_modules to reinstall all dependencies but nothing seems to work.
What is the current behavior?
This is the output of yarn check when I tried to run my Rails project in my local environment:
error "@storybook/react#@storybook/core#webpack-virtual-modules#debug" is wrong version: expected "^3.0.0", got "2.6.9"
After discussion with @larixer over the discord server, it seems that the hoisting is broken. This is the output from @larixer while helping me out on this issue:
Additional context. I have tried to reproduce the problem and yes, the hoisting becomes broken, but it becomes broken because of the wrong entry in the yarn.lock for webpack-virtual-modules, after first install via yarn the correct entry for webpack-virtual-modules is written into yarn.lock, and after cleaning node_modules and running the second install, the hoisting layout becomes correct.
The main issue here is incorrect entry in yarn.lock for webpack-virtual-modules, but I cannot reproduce this main issue, yarn generates correct entry after install for me.
Bug description
This issue was filed at sysgears/webpack-virtual-modules#44 before reporting it here.
I installed React Storybook in my current project but one of the dependency, https://github.com/sysgears/webpack-virtual-modules , doesn't seem to add the
debug
dependency as stated in https://github.com/sysgears/webpack-virtual-modules/blob/665340a8c2ce240f1ed926d5ec706c7d83c2fca1/package.json#L38 . This is my entry of the dependency in the yarn.lock instead:Command
It's a Rails project that I'm working on, so I encountered this issue while Rails is performing a
$ yarn check
with mywebpacker
gem versioned at4.2.2
installed.I've tried different ways to try make it work, including removing the
webpack-virtual-modules
entry from yarn.lock and runyarn install
, reinstall@storybook/react
, even tried removednode_modules
to reinstall all dependencies but nothing seems to work.What is the current behavior?
This is the output of
yarn check
when I tried to run my Rails project in my local environment:After discussion with @larixer over the discord server, it seems that the hoisting is broken. This is the output from @larixer while helping me out on this issue:
What is the expected behavior?
I'm expecting the correct dependencies to be registered, installed and loaded:
Steps to Reproduce
Attaching my package.json and yarn.lock for further inspection: debug.zip
Environment
v10.19.0
1.22.4
The text was updated successfully, but these errors were encountered: