-
Notifications
You must be signed in to change notification settings - Fork 12k
Dev-server error after setting proxy.conf.json loglevel to "verbose" #22969
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
Comments
I looks like we are not emitting proxy config errors.
https://github.com/chimurai/http-proxy-middleware#options
|
Argh, sorry, my bad. |
I do see the logs from http-proxy-middleware being printed correctly.
Edit: I see that debug logs are not displayed because we never turn on https://webpack.js.org/configuration/other-options/#debug |
Yeah, I wondered, because I also saw it being set up but did not see the active proxy output.
That's where I got |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command
Is this a regression?
Yes, the previous version in which this bug was not present was: Angular v12
Description
As of the new WebPack version in Angular v13 I changed the
logLevel
inside myproxy.conf.json
fromdebug
toverbose
.Since then I receive on
ng serve
:To Note
I work inside an Angular "workspace", so my apps are inside the "projects" folder.
Also (when I remove
logLevel
, so that the Dev-Server starts) I receive duplicate requests on my API end.Some of my URLs go to
/api/proxy/my-service
and after WebPack proxy it should look likehttp://localhost:3005/proxy/my-service
. But I also receive a second request onhttp://localhost:3005/my-service
? Does it have a problem with the keyword "proxy" inside URLs?🔬 Minimal Reproduction
ng new my-workspace --create-application false
ng generate application my-first-app
C://.../my-workspace/projects/my-first-app
create aproxy.conf.json
with something likeangular.json
:ng serve my-first-app
and observe🔥 Exception or Error
🌍 Your Environment
Output of
npm ls webpack-dev-server
:The text was updated successfully, but these errors were encountered: