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

[BUG]: DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated #175

Open
marcoandre1 opened this issue Feb 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file wontfix This will not be worked on

Comments

@marcoandre1
Copy link
Owner

Describe the bug
I noticed that there is a quick warning when launching the app with npm start :

> react-scripts start

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

To Reproduce
Steps to reproduce the behavior:

  1. Start local server with npm start

Expected behavior
No warnings.

Additional context
There is an issue opened on the main create-react-app repo : DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated #12035. The fix is specified in pull request : fix(webpackDevServer): fix deprecation warning #11862. However, I can't make the fix without ejecting, which I don't want to do. I will keep an eye if it ever gets fixed. At the moment, it doesn't affect npm build.

@marcoandre1 marcoandre1 added bug Something isn't working wontfix This will not be worked on dependencies Pull requests that update a dependency file labels Feb 18, 2024
@marcoandre1 marcoandre1 self-assigned this Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant