Syntax Error in Angular App: Unexpected token <

后端 未结 30 2102
独厮守ぢ
独厮守ぢ 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:37

    I had the same issue, very irritating. I tried several of the solutions found here, but none worked.

    Adding the following in the Application Settings blade of the application in the Azure portal did the trick -

    App Setting Name: WEBSITE_NODE_DEFAULT_VERSION Value: 6.9.1

    > Before and after - excerpts from the deployment log.

    remote: The package.json file does not specify node.js engine version constraints.
    remote: The node.js application will run with the default node.js version 0.10.40.
    remote: Selected npm version 1.4.28
    
    
    remote: The package.json file does not specify node.js engine version constraints.
    remote: The node.js application will run with the default node.js version 6.9.1.
    remote: Selected npm version 3.10.8
    

提交回复
热议问题