Open lfloyd117 opened 2 weeks ago
It's not really a solution, but we were able to reduce the frequency of this issue by adding the webpack RetryChunkLoadPlugin.
@davidtaylorhq were you seeing this/did that help in automated tests?
Yeah we were seeing the same error in QUnit tests, and adding the RetryChunkLoadPlugin seems to have reduced the frequency of the error
We've recently started seeing a "ChunkLoadError" randomly in our tests:
It happens randomly on various tests infrequently (but enough to cause issues), the only pattern able to observe is it always happens on acceptance tests on routes that are included in
splitAtRoutes
in our config. It's only started happening recently, trying to pin down a related change/timeline. Only recent changes I can think of was the following Embroider package updates:We parallelize our tests with
ember-exam
on 4 partitions. I have been unable to reproduce the issue locally at all (even in an environment matching our build servers) running either exam or in-browsers tests via a test server. We were on ember-examv8.0.0
and I tried upgrading tov9.1.0
(latest currently) and there was no change in behavior. Our embroider package versions are below:It is worth it to note that we have seen reports of this error in production though there it may very well (and is often accepted by community members to be) a caching issue between releases. That said, we have been unable to reproduce the issues and these very well could be connected. Here is our current configuration: