You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using the @snowpack/plugin-webpack plugin for optimizing for production. I've been seeing a lot of ChunkLoadError in our logs, which seem to be network-related errors while lazy loading parts of the javascript.
I found a webpack plugin that should auto retry these chunks, but when I configure it, I get this error during the build:
[@snowpack/plugin-webpack] TypeError: The 'compilation' argument must be an instance of Compilation
This is the first webpack plugin I've added to the pipeline so I'm not totally sure if I'm doing this correctly or if there's some issue with the plugin itself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We're using the
@snowpack/plugin-webpack
plugin for optimizing for production. I've been seeing a lot ofChunkLoadError
in our logs, which seem to be network-related errors while lazy loading parts of the javascript.I found a webpack plugin that should auto retry these chunks, but when I configure it, I get this error during the build:
My
snowpack.config.js
file looks like this:This is the first webpack plugin I've added to the pipeline so I'm not totally sure if I'm doing this correctly or if there's some issue with the plugin itself.
Beta Was this translation helpful? Give feedback.
All reactions