-
-
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
webpack build freezes at 70% when I save a file in watch mode #13482
Comments
Can you try the following, in the following order, and let me know which step fixes it (if any):
|
Thanks! removing storysource and docs It works. But it needs a fix I guess. Storysource is not very important to me, but docs it does. Anyway, this is a big step to continue developing fast. |
@lalogrosz so to clarify you needed to perform all three steps to get it working? |
That will be the best approach. I have more info about the bug. Debugging source-loader/dist/abstract-syntax-tree/parse-helpers.js:174:15) I found this value in addArgs: [{
type: 'Literal',
value: 1,
raw: '1',
range: [ 792, 793 ],
loc: { start: [Object], end: [Object] }
}, {
type: 'Literal',
raw: '\'hours\'',
value: 'hours',
range: [ 795, 802 ],
loc: { start: [Object], end: [Object] } }
] This is unusal, because these are params in a moment add function. The problem is the number value trying to call toLowerCase function in @storybook/csf/dist/index.js:L27. I tried to cast to string but I get the typescript error: TS1351: An identifier or keyword cannot immediately follow a numeric literal, obviously. I don't know how to make a fix to this because I don't understand the main problem. |
In your
Try changing this override to be additive as you do with other overrides:
|
@kaidjohnson That didn't resolve the issue. The error is still when import the docs plugin. |
@lalogrosz did you manage to resolve the issue. i'm facing the same exact problem |
No, just removing storysource and docs is working for me |
I had the same issue. As a workaround I had to replace all instances of For example instead of |
@BBlackwo
|
Describe the bug
When I run
npm run storybook
it runs ok, but when I save a file, it stucks and I have to kill the process and re-run againconsole output
package.json
.storybook/main.js
System
Additional context
The problem is not only in my computer. All developers experiment the same behavior
The text was updated successfully, but these errors were encountered: