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
Uncaught (in promise): TypeError: _angular_core__WEBPACK_IMPORTED_MODULE #3156
Comments
Can either of you provide a way to reproduce this? Provide the test code with url to visit or test code + application code? Unfortunately we'll have to close the issue if we cannot reproduce the issue locally on our machine. |
thanks for your reply, |
Please comment if you experience this problem in the future and we'll consider reopening. |
Just started showing up for me in gitlab runner. Not exactly the same, but similar. Running locally on macOS, no problem. In gitlab using the cypress/base:10 image the result below. Not sure what has changed, and definitely not clear this is a cypress problem. Just adding some information. Regards, Mike
|
@mike-packetwerk Can you provide a way to reproduce this? Provide the test code with url to visit or test code + application code? |
Sorry, internal app. Angular CLI has recent problems due to terser - maybe this is related angular/angular-cli#13582. When I upgrade CLI I'll report back if any change occurs. |
Ok, so I haven't upgraded anything, and yet the cypress tests are working again in gitlab. I have no explanation, but an appreciation: I think you fine folks have made a wonderful tool with cypress. I am thankful, even if my environment is inexplicable. |
@mike-packetwerk @amit-dhakad1 |
I don't know how that is solved. |
Even though we use yarn to nail our dependencies, it feels like something changed behind us. I don't have an explanation for the problem appearing, nor disappearing. |
Our team is getting: |
Error Error appears randomly only in e2e tests. Internal project.
We also use Can it be the case that when some module is loading but not yet loaded and Cypress navigating to url that related to this module it somehow break loading process, or returning a module that not fully loaded yet? |
Hi everyone! I've also faced this issue and the workaround that helped me to fix it is adding a strict version of the webpack to the dependencies sections of my package.json file (f.e, |
@dudewad I've faced the same issue
and got it resolved by changing IIS settings of my local site - instead of using http, I started using https. Maybe this will work for you as well. |
Well, this helped to figure out that the error only happens when testing my Angular App: But I'm still getting the same error 😞 :
UPDATE1: One other thing, I'm on Angular 8 now, and it was working fine in Angular 7. UPDATE 2: Solved! Like this: "testing": {
"aot": true,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.testing.ts"
}
]
} (I hope that helps anyone with the same problem) |
I'm getting this error when loading url in cypress but that url is working in a normal browser. can anyone explain by i'm getting this error.
The text was updated successfully, but these errors were encountered: