我試着用因緣做測試,但得到一個錯誤:多的WebPack
ERROR in ./src/test.ts
Module build failed: Error: AotPlugin was detected but it was an instance of the wrong class.
This likely means you have several @ngtools/webpack packages installed. You can check this with `npm ls @ngtools/webpack`, and then remove the extra copies.
當我執行CMD我得到這樣的結果:
+-- @angular/[email protected]
| `-- @ngtools/[email protected]
`-- @ngtools/[email protected]
在我package.json
我只有@ngtools/webpack": "^1.5.1
這個1.4.1來自哪裏?
答案就在你眼前。這是角度cli的一個子依賴。 –