Angular2 Duplicate identifier 'PropertyKey'

前端 未结 2 1824
眼角桃花
眼角桃花 2021-01-18 18:42

I am building an angular2 application using angular-cli. angular-in-memory-web-api was not installed by default.

So I searched

2条回答
  •  囚心锁ツ
    2021-01-18 19:00

    It seems like you are compiling in the node_modules folder, so, in your tsconfig.json (that I presume you have) make sure to set your exclusions for the compiler to ignore:

    {
      "compileOnSave": true,
      "compilerOptions": {
        <...>
      },
      "exclude": [
        "node_modules"
      ] 
    }
    

提交回复
热议问题