You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading "aws-amplify" package version from "4.3.7" to "6.6.0" tests started failing with the exception:
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
This is related browserify, its default options and the type of libraries you're importing. I can't help you with tweaking this. You can specify options as a 2nd argument to preprocessor(..), but I recommend just using a different bundler altogether.
Furthermore, is it even supposed to run in the browser environment? If not, then cypress/support/index.js isn't the right place to import it.
Current behavior
After upgrading "aws-amplify" package version from "4.3.7" to "6.6.0" tests started failing with the exception:
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
Test code to reproduce
https://github.com/dnovikau/browserify-preprocessor/tree/main
Note: provided code works fine with "aws-amplify": "4.3.7" but not with latest version
Versions
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: