使用ng build时无法建立我的角度项目

时间:2019-05-13 07:43:22

标签: npm-install

我无法使用ngbuild构建我的Angular项目。我遇到此错误:

Cannot read property 'isDefaultChangeDetectionStrategy' of undefined
TypeError: Cannot read property 'isDefaultChangeDetectionStrategy' of undefined
    at C:\MeshPDUDev\my-app\node_modules\@angular\compiler\bundles\compiler.umd.js:6160:73
    at C:\MeshPDUDev\my-app\node_modules\@angular\compiler\bundles\compiler.umd.js:7:66
    at Object.<anonymous> (C:\MeshPDUDev\my-app\node_modules\@angular\compiler\bundles\compiler.umd.js:10:2)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at C:\MeshPDUDev\my-app\node_modules\@angular\compiler-cli\index.js:20:22
    at C:\MeshPDUDev\my-app\node_modules\@angular\compiler-cli\index.js:3:17
    at Object.<anonymous> (C:\MeshPDUDev\my-app\node_modules\@angular\compiler-cli\index.js:9:3)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)

0 个答案:

没有答案