After the update of my core depenencies, @nrwl/, @angular/ and cypress, my e2e tests are kind of broken. I receive the following error:
import './command';
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
.
Cypress displays this error in addition:
These are the updated dependencies:
Until the update, we just imported custom commands directly from the command.ts
-file in the spec-files. But also by using the support/index.ts
the same error appears, but then in index-file.
The only thing, which worked (but can not be a solution actually), is to move the custom command into the index-file itself and remove the import statement(s).
And since I am operating these tests within a NX-Workspace, I do not have direct access to any webpack or babel config or something similar.
Any hint or idea, what I could try?