-
-
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
TypeError: dep.getModuleEvaluationSideEffectsState is not a function #15221
Comments
I'm also experiencing this since upgrading from Webpack 4 to a non-PNP Webpack 5 setup. From 6.2.9 to 6.3.0-rc.5. Looks like @lifeiscontent is using PNP. |
Following this issue mrsteele/dotenv-webpack#275, I was able to avoid this error by adding to my config:
Storybook builds, but I am now encountering an error when viewing in browser: #15097 EDIT: rc.8 fixed that issue |
Having the same issue here... And I wasn't able to bypass by changing optimization settings like @bdefore did |
Seems that it's problem in docgen plugin. As I understand it should implement |
It looks like webpack can expect this method to be defined in certain cases. Related to storybookjs/storybook#15221.
I have an initial fix at hipstersmoothie/react-docgen-typescript-plugin#46 . @shilman Can you cut a canary version to test? |
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-rc.11 containing PR #15287 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
using 6.3.0-rc.4 I'm getting an error when running storybook
To Reproduce
@shilman I can show you on lifetime, not sure how to reproduce in paired down example.
System
Environment Info:
System:
OS: Linux 5.4 Zorin OS 15.3
CPU: (4) x64 Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz
Binaries:
Node: 14.16.1 - ~/.asdf/installs/nodejs/14.16.1/bin/node
Yarn: 1.22.10 - ~/.asdf/installs/nodejs/14.16.1/.npm/bin/yarn
npm: 6.14.12 - ~/.asdf/installs/nodejs/14.16.1/bin/npm
Browsers:
Firefox: 89.0
Additional context
Logs:
The text was updated successfully, but these errors were encountered: