Syntax Error in Angular App: Unexpected token <

后端 未结 30 2156
独厮守ぢ
独厮守ぢ 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条回答
  •  旧时难觅i
    2020-12-02 20:27

    In my experience i'm add other assets to wwwroot is conflicted to detect static base address for asp.net core.

    For example:

    wwwroot
          |--> assets 
                      |---> ckeditor
    

    Is conflict with angular -> src -> assets and show this error

    Uncaught SyntaxError: Unexpected token < inline.1a152b6….bundle.js:1
    ...
    

提交回复
热议问题