-
Notifications
You must be signed in to change notification settings - Fork 18
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
Getting -SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' at EventEmitter.handler after adding import "cypress-ag-grid"; to the Index.js file #9
Comments
@kpmck Can you please help me in this |
Hi @MonikaJaiswalMJ . This type of error typically stems from configuration in your project, rather than from a plugin. Without having details on how your Cypress project is configured, it would be difficult for me to help resolve this issue for you. However, here is a relevant StackOverflow answer that may help! https://stackoverflow.com/questions/53650208/cypress-parseerror-import-and-export-may-appear-only-with-sourcetype-modu |
@kpmck Actually this specific error I am getting after adding the Import statement only, once I have removed this, my tests are working fine |
Are you importing other plugins in your |
@kpmck // Import commands.js using ES2015 syntax: It is the only plugin |
Would you be able to provide a reproducible solution? Are you using TypeScript elsewhere in your project, or is this pure JavaScript? |
@kpmck Issue has been resolved, Thank You !! |
I’m glad to hear that! Would you mind sharing the resolution in case anyone else incurs this issue? |
@kpmck Actually Cucumber plugin was causing that issue, I have just removed the Cucumber plugin and issue got resolved |
Hi @kpmck , I am facing a similar issue in my project, but as many teams are using the same component, I cannot remove the cucumber plugin. Any workaround for this issue other than removing the cucumber plugin ? |
@shalini1691 would you mind answering the above questions please? |
We are not using TypeScript @kpmck . Its pure Javascript. |
I am not currently seeing this on my configuration. Do you have a
reproducible solution you can share?
…On Mon, Apr 25, 2022 at 8:55 AM shalini1691 ***@***.***> wrote:
We are not using TypeScript @kpmck <https://github.com/kpmck> . Its pure
Javascript.
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGIEIVLWVFFNWIYT4O4ANI3VG2I2LANCNFSM5NPFCVIQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sure @kpmck ,
// eslint-disable-next-line no-unused-vars |
@shalini1691 I have followed your instructions, but I am not able to reproduce your issue. If you are able to upload a reproducible solution to GitHub that I can pull down, that would be helpful. |
Hi @shalini1691, just wanted to follow up on if you were able to resolve your issue or create a reproducible solution? |
Hi @kpmck , I still couldn't figure out a solution for this, I will do a detailed analysis on this and let you know the outcome. |
I am facing the same issue as well, and I cannot remove Cucumber plugin as it is used in our project. Please let me know if there is any workaround for this. @kpmck @shalini1691 |
Hello @Pallabee94 , unfortunately I have not been able to reproduce this in my solutions that leverage cypress-cucumber-preprocessor, and won't be able to resolve without a reproducible solution. |
So this plugin needs webpack as the file preprocessor, and that's the reason when we try to use other preprocessors plugins. |
No description provided.
The text was updated successfully, but these errors were encountered: