Angular框架的新成员在使用npm运行build-deploy:dev命令构建我的Angle 8应用程序时遇到错误
错误是
**ERROR in ./node_modules/ngx-daterangepicker-material/fesm5/ngx-daterangepicker-material.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js):
TypeError: Cannot read property 'kind' of undefined
at isAngularDecoratorMetadataExpression (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:265:35)
at checkNodeForDecorators (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:77:21)
at visitNodes (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16514:30)
at Object.forEachChild (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16740:24)
at checkNodeForDecorators (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
at visitNode (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16505:24)
at Object.forEachChild (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16635:21)
at checkNodeForDecorators (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
at visitNode (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16505:24)
at Object.forEachChild (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16692:24)
at checkNodeForDecorators (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
at visitNode (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16505:24)
at Object.forEachChild (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16703:24)
at checkNodeForDecorators (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/src/transforms/scrub-file.js:68:31)
at visitNode (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16505:24)
at Object.forEachChild (/var/www/html/rentsher-ssr/node_modules/@angular-devkit/build-optimizer/node_modules/typescript/lib/typescript.js:16599:21)**
这是我的package.json文件
"dependencies": {
"@angular/animations": "~8.0.0",
"@angular/cdk": "^8.0.0",
"@angular/common": "~8.0.0",
"@angular/compiler": "~8.0.0",
"@angular/core": "~8.0.0",
"@angular/fire": "^5.2.1",
"@angular/forms": "~8.0.0",
"@angular/platform-browser": "~8.0.0",
"@angular/platform-browser-dynamic": "~8.0.0",
"@angular/platform-server": "~8.0.0",
"@angular/pwa": "^0.800.2",
"@angular/router": "~8.0.0",
"@angular/service-worker": "~8.0.0",
"@nguniversal/express-engine": "^7.0.2",
"@nguniversal/module-map-ngfactory-loader": "v7.0.2",
"@nicky-lenaers/ngx-scroll-to": "^2.0.0",
"@types/moment": "^2.13.0",
"bootstrap": "^4.3.1",
"concat": "^1.0.3",
"express": "^4.15.2",
"firebase": "^6.1.1",
"font-awesome": "^4.7.0",
"jquery": "^3.4.1",
"mkdir-recursive": "^0.4.0",
"moment": "^2.24.0",
"ng-navigator-share": "^1.0.0",
"ngx-custom-validators": "^7.0.0",
"ngx-daterangepicker-material": "^2.1.3",
"ngx-infinite-scroll": "^7.1.0",
"ngx-owl-carousel-o": "^1.1.5",
"popper.js": "^1.15.0",
"rxjs": "~6.4.0",
"tslib": "^1.9.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.800.0",
"@angular/cli": "~8.0.2",
"@angular/compiler-cli": "~8.0.0",
"@angular/language-service": "~8.0.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.0.0",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"protractor": "~5.4.0",
"ts-loader": "^5.2.0",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.4.3",
"webpack-cli": "^3.1.0",
"@angular-devkit/architect": "<0.900 || ^0.900.0-0 || ^9.0.0-0",
"fuzzy": "^0.1.3",
"inquirer": "^6.2.2",
"inquirer-autocomplete-prompt": "^1.0.1"
}
这是ngx-daterangepicker-material版本的问题吗?无法解决该问题。有人可以帮助我做错什么,或者我该如何克服这个问题? 预先感谢。