-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. #6167
Comments
Thanks, this seems like a recent change in Webpack: webpack/webpack-dev-server#4068 Should be fixed in the next release with #6168 |
@hasezoey Also, do note that |
wouldnt that make it also, if i remember correctly the project where i noticed this issue in, got created with around
thanks for this note, i did not know this subcommand existed in docusaurus, is there documentation somewhere on what exactly it does? |
It's
Yep, |
@Chasen-Zhang The deprecation is just a warning, not an error. Your error is unrelated, which is that localhost is not found. Did you modify your hosts file? |
oh thanks, it is my fault, i overwrote my localhost |
Also, to get rid of the warning, just upgrade to 2.0.0-beta.14 |
Just double-checked and it will only be in the next beta.15 release (or canary) For now you can just ignore this warning, it will disappear soon |
Getting the same weird warnings on |
I get the same error when i run my app which just tries to authenticate users for login in through Azure AD. When i try to log-in through my app, the Microsoft popup login window flashes for sec and then dies. |
@S0f0s Your error is unrelated. If your login doesn't succeed it has nothing to do with Docusaurus. Everyone, this message is just a WARNING. Webpack dev server doesn't do breaking changes across minor versions so nothing would actually break. The next release would get rid of this message. For now, you can either use canary, or bear with it. |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Currently, when running
docusaurus start
, a deprecation warning comes up:this error comes only when using
start
, and notbuild
Note: i did not do the step
I have tried the npm run clear or yarn clear command.
, because no command likeyarn clear
exists (using yarn version1.22.17
)Steps to reproduce
https://github.com/nodkz/mongodb-memory-server
and cd into/website
)2.0.0-beta.14
(either by manually setting it in the package.json or usingyarn upgrade --latest @docusaurus/core @docusaurus/preset-classic
)docusaurus start --no-open --poll
Expected behavior
to not have a deprecation warning
Actual behavior
the mentioned deprecation warning
(its currently just a warning, not breaking anything)
Your environment
2.0.0-beta.14
in case it matters, i also get some warnings when installing all packages:
Reproducible demo
No response
Self-service
The text was updated successfully, but these errors were encountered: