Issue
Hi I have a problem when i make a deployment of my angular app, I mean when I serve it from angular it works fine but when i make a deployment on a tomcat server I get the errors and I cannot see anything related to components and modules, a little navbar i have in my index.html
is loaded and thats all:
But when is serve from angular...
I made anothers deployment using Angular+PHP on Tomcat and never get these errors. Do you know why i am getting this?
Maybe it is something about text/html
and aplication/json
but not sure.
If you check the index.html in the dist
folder you will find these:
Solution
It works like that!!:
when you make a deployment sometime on your index.html generated by the build
has a referente due to "/"
when it must be "./"
, i dont know how it was generated by itself in that way but also you can solucionate by <base href='http://localhost:port/distName/appName/'>
Answered By - Qiqke
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.