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
Problem with storybook build failing depending on the state of package lock #1092
Comments
I think that new "compilation error" might be fixed with this? jantimon/html-webpack-plugin#1451 (comment) didn't bother to try because I worried it'd be going to too hacky territory |
I get It won't close this issue, but it would be more secure if we could identify what versions of what packages cause this and lock them down (temporarily) in our I hadn't bothered locking any versions because I was kinda hoping things were getting fixed upstream. Some of those issues you linked with workarounds for these errors are over half a year old and already closed though. We might need to go the length of documenting/recreating this and opening a new issue about it if we actually want it fixed. If we can stabilize things by locking the right package versions, then the |
Good point, locking down the "good" version of problematic packages would justify to remove the urgent tag |
Update: everything is working for me with storybook Someone reopened the closed .env issue here, fix got in to the release candidate I'll be watching for the official 6.3.0 release. Expect a little bit of migration issues in the switch (getting some webpack config warnings on the release candidate), but should finally be able to move past this 👍 |
Not immediately clear if this (or the .env related portion at least) was actually intentionally fixed. Not seeing any specific storybook PRs or commits in |
Oops, closed by #1165 |
For whatever reason, if you do a clean install:
remove node_modules and pacakge-lock.json
->npm install
Storybook is failing on the resulting lock file.
Error msg is something like:
TypeError: Cannot read property 'get' of undefined
As a workaround, we're not doing a clean install, and only doing
npm install <dependency>
on top of the existingpackage-lock.json
on master. However, this is only short-term temporary solution and it's something that should be taken care of sooner or laterThings I've tried fixing:
dotenv-webpack
: It fixed for me locally but fails on CI with the messageThe 'compilation' argument must be an instance of Compilation
config.resolve.fallback = { http: false, }
Links for fixing I looked into:
storybookjs/storybook#14497
https://stackoverflow.com/questions/67070802/webpack-5-and-storybook-6-integration-throws-an-error-in-defineplugin-js
The text was updated successfully, but these errors were encountered: