-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
"webpackHotUpdate is not defined" error when using extractCSS option #43
Comments
I found a workaround by adding this in nuxt.config.ts:
I'm using nuxt bridge. |
I had the same issue and did this. Worked like a charm. |
I also have this issue, but when disable nitro - it works fine:
|
The workaround creates a single css file, right? So one should note a potential performance decrease. |
This is the updated config for the recent Nuxt Bridge versions:
|
Environment
Linux
v14.17.6
2.16.0-27226092.034b9901
Yarn
Webpack
css
,build
,buildModules
-
@nuxt/[email protected]
Describe the bug
When you add some css file to the css array and then turn on the build.extractCSS option in the nuxt config then change some template's content, the page will fully reload instead of updating the page itself and in the console you will see the following error:

Also I won't be surprised if this warning has some relation to this issue

Note that this bug goes away after you edit the template again. In a different project I had it stick for pretty much forever, though I'm not yet sure what causes it to stick, I'll try to create a minimal reproduction of it too if needed. I'm hoping that if this one is fixed, it might also fix it sticking around.
Reproduction
https://codesandbox.io/s/suspicious-pasteur-ycqi3?file=/pages/index.vue
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: