Home > Back-end >  Angular ng serve does not work as expected
Angular ng serve does not work as expected

Time:12-20

I am trying to run my angular application but facing issue while running the application using ng serve. The ng build works fine but the ng server does not work (Did try with npm start as well) ngserve response

  1. Did try adding a proxy.conf.json under root folder(app folder) then updated the package.json start : "ng serve --proxy-config proxy.conf.json"
  2. Did try adding a prxy.conf.js under root folder(app folder) then updated the package.json start : "ng serve --proxy-config=proxy.conf.js"

CodePudding user response:

According to error in screen you attached, it seems like you shouldn't put proxy.conf.js in src, but in project root directory. In your case its name is: LoupeUS-Frontend

  • Related