Skip to content
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

Update examples react-scripts for Node.js 18 #731

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Jan 20, 2023

This PR resolves issue #687 "react-scripts used in example-wait-on fail locally on Node.js 18 (LTS)"

In the following examples:

the following versions are bumped:

Verification

GitHub test

Check the Actions log on https://github.com/cypress-io/github-action/actions/workflows/example-wait-on.yml?query=branch%3Amaster and ensure that the Status is "Success".

Local test

Open a terminal window on a local clone of the repository:

cd examples/v9/react-scripts
nvm use 18.13.0
npm ci
npm start

Ensure the message:
"webpack compiled successfully"
appears and that there are no error messages displayed. (See below for comment on deprecation warnings.)

Following on from the previous test, to now check in examples/react-scripts ...

cd ../../react-scripts
nvm use 18.13.0
npm ci
npm start

Ensure the message:
"webpack compiled successfully"
appears and that there are no error messages displayed.

Note that when running npm start, deprecation warnings appear. This is a known issue 11860 in https://github.com/facebook/create-react-app/issues. The warnings are:

DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE
DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE

@MikeMcC399 MikeMcC399 marked this pull request as draft January 20, 2023 11:48
@MikeMcC399

This comment was marked as outdated.

@MikeMcC399 MikeMcC399 marked this pull request as draft January 25, 2023 08:17
@MikeMcC399

This comment was marked as outdated.

react-scripts used by example wait-on can now run under Node.js 14, 16 & 18
add npm module wait-on
@MikeMcC399 MikeMcC399 marked this pull request as ready for review February 1, 2023 19:28
@MikeMcC399
Copy link
Collaborator Author

@jaffrepaul

This PR is now rebased and ready for review and merge.

Copy link
Contributor

@jaffrepaul jaffrepaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jaffrepaul jaffrepaul merged commit 2ef01f2 into cypress-io:master Feb 3, 2023
@MikeMcC399 MikeMcC399 deleted the fix/react-scripts branch February 3, 2023 16:35
@github-actions
Copy link

github-actions bot commented Feb 3, 2023

🎉 This PR is included in version 5.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants