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
There should be no deprecation warning displayed when example-webpack is run on GitHub.
npm start should always succeed when it is executed in either of the directories examples/v9/webpack or examples/webpack and a supported Node.js version is installed (currently 14.x and 16.x have maintenance status; 18.x is the active LTS version).
Analysis
cypress-io/github-action/ currently always runs under Node.js 16.13.0 (see #642). Running under this version causes only a deprecation warning.
If a local test is being carried out on Node.js 18, this fails because the examples are using webpack v4, whereas a minimum version of webpack v5.61.0 is needed to support Node.js >= 17 .
I plan to submit a PR to resolve this issue and I will wait until there are no other conflicting PRs which would also modify the affected package-lock.json files.
Problem description
The webpack examples report success (with a deprecation warning) when run on GitHub.
When they are run locally on Node.js 18, which is currently the Node.js active Long Term Support (LTS) version, they fail.
The associated action and source files are:
An example of the deprecation warning resulting from running on GitHub can be found in run 6303278763.
Steps to reproduce
Open a terminal window on a local clone of the repository:
cd examples/webpack nvm use 18.12.1 npm ci npm start
Note:
"Error: error:0308010C:digital envelope routines::unsupported"
Results for supported Node.js versions
Executing
npm start
gives:Compiled successfully.
Expectation
npm start
should always succeed when it is executed in either of the directories examples/v9/webpack or examples/webpack and a supported Node.js version is installed (currently 14.x and 16.x have maintenance status; 18.x is the active LTS version).Analysis
cypress-io/github-action/ currently always runs under Node.js 16.13.0 (see #642). Running under this version causes only a deprecation warning.
If a local test is being carried out on Node.js 18, this fails because the examples are using
webpack
v4, whereas a minimum version of webpack v5.61.0 is needed to support Node.js >= 17 .github-action/examples/v9/webpack/package.json
Lines 13 to 15 in 326daf6
github-action/examples/webpack/package.json
Lines 13 to 15 in d1d2ac8
Suggested fix
For
in
webpack.config.js
contentBase
by static directorydevelopment
andbump
then add
.gitignore
file containingdist/
.References
The text was updated successfully, but these errors were encountered: