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

Transient error message in command window after "npm start" #923

Closed
grumpyinca opened this issue Aug 18, 2024 · 5 comments
Closed

Transient error message in command window after "npm start" #923

grumpyinca opened this issue Aug 18, 2024 · 5 comments
Assignees
Labels
Coded Programming is done and branch pushed to remote
Milestone

Comments

@grumpyinca
Copy link
Contributor

This issue is transcribed from #441 (now closed).

Test result number 22
low priority

June 14. Confirmed July 20, 2024.
Message that briefly appears in development environment client command window when loading following "npm start":

(node:9656) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] Deprecation Warning: 'onAfterSetupMiddleware' option is deprecated.
Please use the 'setupMiddlewares' option.
(Use node --trace-deprecation ... to show where the warning was created)
(node:9656) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated.
Please use the 'setupMiddlewares' option.

@grumpyinca grumpyinca added this to the ODOP 5.0 milestone Aug 18, 2024
@1fifoto
Copy link
Collaborator

1fifoto commented Aug 18, 2024

Please run 'node -v' and tell your node version. For example, my system:

brianwatt@Bris-M1-MBP odop % node -v
v20.11.1
brianwatt@Bris-M1-MBP odop % 

@1fifoto
Copy link
Collaborator

1fifoto commented Aug 18, 2024

When you issue 'npm start' change to 'npm start >> error.txt' to capture the console output & attach it here as a comment. Also are you seeing a slow start-up with the browser output.

@1fifoto
Copy link
Collaborator

1fifoto commented Aug 18, 2024

See: facebook/create-react-app#12035

The above refers to YouTube: https://www.youtube.com/watch?v=ifSTp9WEHpo, and his github repo with the change in it at: https://github.com/DrVipinKumar/ReactAllProjects/blob/main/reactwithspring/public/MiddlewareDeprecationSolution.txt

I have made the change in my node modules and the message is no longer being generated. Now the only problem is this is a modification to node_modules which is lost upon installing our app. As a result we need a 'patch' facility (see: https://www.npmjs.com/package/patch-package).

@1fifoto
Copy link
Collaborator

1fifoto commented Aug 18, 2024

Fix added to branch 923. This requires you to delete node_modules and run 'node install' then, which applies the patch to eliminate this error.

@1fifoto
Copy link
Collaborator

1fifoto commented Aug 18, 2024

Merged into master, closing

@1fifoto 1fifoto closed this as completed Aug 18, 2024
@1fifoto 1fifoto added the Coded Programming is done and branch pushed to remote label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Coded Programming is done and branch pushed to remote
Projects
None yet
Development

No branches or pull requests

2 participants