harlan-zw / nuxt-webpack-optimisations

Make your Nuxt.js webpack builds faster ⚡
271 stars 8 forks source link

Client fails to compile #32

Closed selfagency closed 3 years ago

selfagency commented 3 years ago

Can't see the .nuxt/client.js file when compiling, but if I disable the plugin it works fine.


 ERROR  Failed to compile with 1 errors                                                            friendly-errors 15:42:05

This dependency was not found:                                                                     friendly-errors 15:42:05
                                                                                                   friendly-errors 15:42:05
* /Users/daniel/code/directlink-portal/.nuxt/client.js in multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                   friendly-errors 15:42:05
To install it, you can run: npm install --save /Users/daniel/code/directlink-portal/.nuxt/client.js

✖ Client
  Compiled with some errors in 516.94ms

✖ Server
  Compiled with some errors in 512.00ms

Nuxt Build Optimisations 1.0.6 with experimental profile Nuxt 2.15.8

CleanShot 2021-08-31 at 15 43 05

harlan-zw commented 3 years ago

Hey @selfagency

Thanks for the issue. I've tried to replicate it with the data you've given me but I wasn't able to, meaning one of two things:

Can you try clearing the cache, if it doesn't work please provide a reproduction repo ideally or your nuxt config.