'angular build not working in server got Uncaught SyntaxError: Unexpected token '<' Error
I face one issue in angular that's angular build does not work properly in the live server but runs properly on the local server. I use dynamic routing in my project.
If I visit http://beta.xyzserver.com/dynamic_name then it's work. but when I visit http://beta.xyzserver.com/dynamic_name/dynamicname_2 then it does not work and gets the below error.
Uncaught SyntaxError: Unexpected token '<' (at runtime.f8cd8e9040452f63622c.js:1:1)
Uncaught SyntaxError: Unexpected token '<' (at polyfills.01e81271ee0b85e10d71.js:1:1)
Uncaught SyntaxError: Unexpected token '<' (at scripts.b306dd7ae3694cfd8910.js:1:1)
Uncaught SyntaxError: Unexpected token '<' (at main.61c7363b673b321c604f.js:1:1)
please give suggestions and help to resolve this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

