question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is protractor no longer working when using Angular 13?

See original GitHub issue

I’m using protractor and recently upgraded from Angular 12 to Angular 13. I now get an error while starting the e2e tests.

Error: Error [ERR_REQUIRE_ESM]: require() of ES Module C:\git\ClientApp\node_modules@angular\cdk\fesm2015\testing.mjs not supported. Instead change the require of C:\git\ClientApp\node_modules@angular\cdk\fesm2015\testing.mjs to a dynamic import() which is available in all CommonJS modules.

Is this something caused by protractor, angular/cdk or something else?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
rbirkgitcommented, Jun 10, 2022

I changed to build our lib with rollup which supports CommonJS/UMD

0reactions
robertIsaaccommented, Jun 10, 2022

The issue is that you are trying to use an ES Module lib but you are running protractor with CommonJS which does not support it. I had the same problem updating to ang13. Our libs no longer generate UMD modules and we can no longer run protractor with them. Need to build our libs with a different tool than ng-packagr that still support UMD.

@rbirkgit did you manage to find a fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does anyone having problems with running e2e tests using ...
We are using protractor for our e2e tests and this was working fine till we've upgraded to Angular 13. If we run the...
Read more >
How to use Protractor with Angular 12 or greater | Daniel Kreider
According to a survey, only 20% or less are actually using Protractor. · Protract is nothing more then a simple wrapper for the...
Read more >
The State of end-to-end testing with Angular - Angular Blog
As of v12 Protractor is no longer included as part of new Angular CLI applications. Starting today we'll only publish critical bug fixes...
Read more >
Protractor is reaching end of life - what are your plans?
Last Month, the Angular team announced they would end development of protractor at the end of 2022. ... Starting with Angular v15, Protractor...
Read more >
Protractor - end-to-end testing for AngularJS
Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found