Syntax Error in Angular App: Unexpected token <

后端 未结 30 2143
独厮守ぢ
独厮守ぢ 2020-12-02 20:16

I have an Angular app which runs perfectly in my local and production environment.. After a tiny change I made, I ran the app locally and it works fine.. Then I built the pr

30条回答
  •  日久生厌
    2020-12-02 20:24

    I'm totally new to Angular so it may not help or at least seem obvious to a lot of you, but in my case it happened every time I reloaded a page that's not the root page, and it came from the fact that, in my index.html file, the base tag looked like this , I had to remove the . so it looks like this : .

提交回复
热议问题