-
Notifications
You must be signed in to change notification settings - Fork 358
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
Webpack Compilation Error / Module not found #875
Comments
cypress-io/github-action is a JavaScript action which uses
Good question!
|
What is in your In a default installation this is basically an empty template. |
@MikeMcC399 Thanks for your help!
Good to know. I was under the impression that since
I actually use v18 for local dev, but I only run Cypress from headless docker container. V16 is simply what the container has. Maybe it's time to check if there is a new container image.
It provides Cypress consistency across different local dev environments (our team have very different preferences as to OSes and how to run local dev envs) and GA/CI. It also allows to run Cypress headless. I don't really need to fire up the Cypress UI to run/develop tests. |
The |
dbalatero/cypress-plugin-stripe-elements v1.0.2 was published 2 years ago and I see an open issue dbalatero/cypress-plugin-stripe-elements#13 "Update plugin to be compatible with Cypress 10". It doesn't look like it has been kept up to date and it hasn't run its own tests for two years. It would have been tested again an old version of Node.js at the time. I guess you could clone the repo and see if its tests still run against current Node.js versions. I don't expect there is an issue with |
Myth resolved. We do not keep the The solution is to simply copy the Cypress command defined in the |
Since you have the parameter
set, there is no installation of dependencies done by Normally it would execute Sorry that I didn't catch this earlier. I assumed that the workflow you posted was missing a section where the installation was dealt with. |
There is a working up-to-date example of split install & build then test on https://github.com/bahmutov/cypress-gh-action-split-jobs/blob/main/.github/workflows/main.yml in case you would like to compare. |
Thanks, it looks like the pivotal difference is that they re-install all In our case it was completely unnecessary until we needed the plugin, so I opted to instead just copy the plugin's command. If there was some way to install |
Workflow:
Error:
The module
cypress-plugin-stripe-elements
is properly installed as a dev dependency of the project. Furthermore, running the same Cypress container locally works just fine, all tests run and pass:One difference that might cause the GA run fail is the
node
binary location:Why would the same container use different
node
binaries when running as a standalone container (locally) and from GA?Why does the error occur in GA only?
The text was updated successfully, but these errors were encountered: