Webpack Lazy Chunk Error during Component Tests #28010
Unanswered
laurenzfiala
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an Angular service that lazily imports some configuration using webpacks' dynamic import:
Now, I had to include these configs in tsconfig.app.json, otherwise the files are not part of the compilation:
So far, so good. This works as expected.
When I start Cypress Component tests, Angular compiles correctly (just like it does outside of Cypress).
But afterwards I get this error:
It seems that Cypress can't find the original
.ts
file.Interestingly, this error does not really do anything (we don't use the locale-configs in the tests). The tests pass anyways.
Unfortunately, our CI sometimes picks this error up and breaks the pipeline.
I checked all kinds of posts, but couldn't find anything related. Does anyone have an idea what could cause this issue?
I'm happy to provide more info or a reproduction if needed.
Version info:
"cypress": "^13.3.0"
"@angular-devkit/build-angular": "~16.2.0"
"@angular/*": "~16.2.0"
Beta Was this translation helpful? Give feedback.
All reactions