-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
"Most NODE_OPTIONs are not supported in packaged apps" when using yarn pnp #19229
Comments
Hi @TheDutchCoder We have same problem actually - did you solve this already? |
It's still showing up, but I'm not sure if there's a newer version, will check that later. We also get an "app quit unexpectedly" warning whenever we close Cypress. |
Same for me. Cypress Version
Other
Running under VSCode.
|
Same for me too Ubuntu (virtualBox) |
Same here. Cypress 9.2.1 It seems to have affected cypress testing only on first open after clean install for me. |
From my limited experience it doesn't seem to affect Cypress testing. |
I am using yarn pnp .. encounter this issue |
Same thing as @zigang93. Using yarn PnP, all of a sudden I can't init cypress whatsoever. Trying to open the desktop app is unsuccessful, seeing the same error discussed above. When running my tests in headless mode, cypress starts, but it is like no packages have been installed at all, so everything fails. |
I have the same error messages but everything still runs. |
Same here. Log statements are showing up, but still the test suite runs fine. |
I had the same warning revert to cypress 9.2.0 seem to solve this,
|
For me downgrading to cypress 9.2.0 did not remove the error. Tests are still passing with both 9.2.0 and 9.5.1 with the error. |
9.5.1 reports this to me every time i run it. The first time, it crashed immediately upon printing this message, afterwards it runs fine. |
I get the error only on M1 Mac but Intel Mac doesn't throw any errors. The same Node version (14.16.1), same code, same packages. Only difference is M1 and Intel chips. Is anyone having trouble on Intel Mac? |
@dong82 I'm seeing it on Intel Mac with node 12 (so old, I know). |
M1 issue was addressed by Cypress themselves. See their article here. |
The error doesn't seem to affect the test run. But to get rid of it anyway, for me it helped just to unset the environment variable before running cypress.
FWIW, I'm using cypress 8.6.0 on an Intel Mac. |
This worked for me. |
FYI |
I solved this problem I run the command |
I am also running into this, I think NODE_OPTIONS is not getting respected (which yarn uses to set the I am trying to find out how to fix this. The warning is from Electron: https://www.electronjs.org/docs/latest/api/environment-variables#node_options. Specifically
Hmm, wonder if we can make this work somehow. |
i have this same problem used docker and vite |
This issue also affects Cypress E2E tests using Yarn Modern pnp. It is not restricted to CT. |
Is this causing anyone to be unable to run tests or is mostly a style thing (eg - you don't like seeing a warning, even if it has no impact on you runs)? |
I haven't seen any test impact. The Electron warning always appears with Yarn Plug'n'Play, presumably because Electron is always used in the first phase, even if subsequently another browser is used for tests. |
Hello I have similar issue with running nodemon as debug configuration for VS code on Windows10 for Node.js by using .vscode/launch.json: {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "nodemon",
"runtimeExecutable": "${workspaceFolder}/node_modules/nodemon/bin/nodemon.js",
"restart": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
} In my case:
Command line changed
to:
And it starts to work. |
For my case, I was using "cypress": "^12.17.2",
Nothing has changed on my |
Adding my voice to the group. Experiencing this with latest version of Cypress (^13.0.0). We then get this
Followed by this
|
|
Still happening with the latest version. |
I also see this on latest |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
2 similar comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
As mentioned in #19229 (comment) quite some time ago, this issue also affects E2E in a Yarn Modern pnp environment. See https://github.com/cypress-io/github-action/actions/workflows/example-yarn-modern-pnp.yml?query=branch%3Amaster for logs, which include the sequence:
This is Cypress |
Current behavior
When I run
npm run cypress:open-ct
(orrun-ct
), I get an error[43901:1203/085557.424470:ERROR:node_bindings.cc(276)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
This might be an Electron issue and it doesn't seem to affect behaviour for us.
Desired behavior
No error to be thrown
Test code to reproduce
Run the Cypress component tester
Cypress Version
9.1.0
Other
MacOS 11.6
Node v16.0.0
The text was updated successfully, but these errors were encountered: