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
Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0) #853
Comments
Also having this issue with both Synpress (standalone) and as a Cypress plugin. |
@mostafa-rio @jemeza did you try with latest stable version which is |
@drptbl I did. For me it actually started to happen on the working setup that uses older version (3.6.4) so I tried to bump it to 3.7.1 and the issue is still there. |
Currently using Synpress as a plugin for Cypress. The latest version of Synpress that works for me is 3.5.1. I'm using the Cypress and Synpress versions specified in cypress/shared-state. I tried bumping these versions and got those errors. |
@drptbl I tested the stable version (3.7.1) and we have the same error. |
I have the same error, tried everything but couldn't find a way to fix it :( |
Same error, what version i can use for cypress with no error? |
I've done some digging, and this error occurs due to an issue with Cypress I'll push a new Synpress release with the fix tomorrow 🫡 |
ok, thanks so much, respect |
I've released a new version under the Please re-open if the issue somehow persists 🫡 |
@duckception I am running into the same issue with |
Hey @jeetparikh! Synpress doesn't support Cypress above We currently have no capacity to make this change ourselves as we've working hard on the upcoming version of Synpress which is a complete rewrite of the codebase. |
No worries.. thanks for getting back @duckception ... Is that on the roadmap at some point? Because this would definitely be a blocker for a lot of people as Cypress v13 comes with some of it's own goodies.. |
@jeetparikh Since we're doing a complete rewrite we have a lot on our plate. We're close to an alpha release that focuses on Playwright. After that, our priority will be polishing the "core" of Synpress, implementing missing MetaMask functions, and adding a wallet-agnostic system so we can support more wallets and unlock a few interesting features thanks to that. We don't have any specific roadmap but once all of this is done we will look into adding Cypress support and that would mean supporting the latest versions. Unfortunately, Cypress support in Synpress relies heavily on Playwright and that's why it's so far on the roadmap. I know this is a bummer 🥲 However, once the alpha release is more or less stable I'll see how hard it would be to add experimental Cypress support though 🫡 |
sounds good.. thanks @duckception ... appreciate your prompt response |
🔎 Have you searched existing issues to avoid duplicates?
🧪 Have you tested your code using latest version of Synpress?
💡 Are you able to provide enough information to be able to reproduce your issue locally?
Synpress version
3.7.2-beta.5
Node.js version
18.17
Operating system
Ventura 13
Run mode
Synpress (standalone)
CI platform (if applicable)
No response
Are you running your tests inside docker? (if applicable)
What happened?
after adding Cypress and Synpress to Next.js project and importing
"import '@synthetixio/synpress/support/index' " into support.js
cypress showing error when running tests
It obviously yelling because it needs loaders for the import and export that is being used inside "@synthetixio/synpress/support/index" file that we imported in support.js according to the installation section in Synpress repo
What is your expected behavior?
No response
How to reproduce the bug.
To reproduce the bug follow the installation process in a fresh Next.js 13 project
Relevant log output
No response
The text was updated successfully, but these errors were encountered: