我已升级到Angular 5.2并已安装两次npm节点模块。在构建之后,我收到错误,因为找不到模块' @ progress / kendo-angu LAR-dateinputs'
安装@ progress / kendo-angular-dateinputs后,我得到了错误的错误。我没有使用任何kendo-angular-dateinputs,因为之前也在更新之前我没有这个模块,我的应用程序在升级之前工作正常。任何想法为什么或如何解决这个问题?
ERROR in ./node_modules/@progress/kendo-angular-grid/dist/es/filtering/shared-filtering.module.js
Module not found: Error: Can't resolve '@progress/kendo-angular-inputs' in 'C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid
\dist\es\filtering'
resolve '@progress/kendo-angular-inputs' in 'C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\filtering'
Parsed request is a module
using description file: C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\package.json (relative path: ./dist/es/filtering)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\package.json (relative path: ./dist/es/filt
ering)
resolve as module
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\filtering\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\node_modules doesn't exist or is not a directory
C:\Projects\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory
looking for modules in C:\Projects\copy of project for testing\node_modules
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
looking for modules in C:\Projects\copy of project for testing\node_modules
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
looking for modules in C:\Projects\copy of project for testing\src
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
looking for modules in C:\Projects\copy of project for testing\src
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\filtering\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\node_modules]
[C:\Projects\copy of project for testing\node_modules\node_modules]
[C:\Projects\node_modules]
[C:\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
@ ./node_modules/@progress/kendo-angular-grid/dist/es/filtering/shared-filtering.module.js 5:0-62
@ ./node_modules/@progress/kendo-angular-grid/dist/es/filtering/cell/row-filtering.module.js
@ ./node_modules/@progress/kendo-angular-grid/dist/es/main.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi ./src/main.ts
ERROR in ./node_modules/@progress/kendo-angular-grid/dist/es/rendering/body.module.js
Module not found: Error: Can't resolve '@progress/kendo-angular-inputs' in 'C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid
\dist\es\rendering'
resolve '@progress/kendo-angular-inputs' in 'C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\rendering'
Parsed request is a module
using description file: C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\package.json (relative path: ./dist/es/rendering)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\package.json (relative path: ./dist/es/rend
ering)
resolve as module
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\rendering\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\@progress\node_modules doesn't exist or is not a directory
C:\Projects\copy of project for testing\node_modules\node_modules doesn't exist or is not a directory
C:\Projects\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory
looking for modules in C:\Projects\copy of project for testing\node_modules
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
looking for modules in C:\Projects\copy of project for testing\node_modules
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./node_modules/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs doesn't exist
looking for modules in C:\Projects\copy of project for testing\src
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
looking for modules in C:\Projects\copy of project for testing\src
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src)
using description file: C:\Projects\copy of project for testing\package.json (relative path: ./src/@progress/kendo-angular-inputs)
no extension
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js doesn't exist
as directory
C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs doesn't exist
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\rendering\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\es\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\dist\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-grid\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\node_modules]
[C:\Projects\copy of project for testing\node_modules\node_modules]
[C:\Projects\node_modules]
[C:\node_modules]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\node_modules\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.ts]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs.js]
[C:\Projects\copy of project for testing\src\@progress\kendo-angular-inputs]
@ ./node_modules/@progress/kendo-angular-grid/dist/es/rendering/body.module.js 19:0-70
@ ./node_modules/@progress/kendo-angular-grid/dist/es/main.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi ./src/main.ts
答案 0 :(得分:1)
我从https://www.npmjs.com/package/@progress/kendo-angular-dateinputs下载了@ progress / kendo-angular-dateinputs最新版本并删除了npm节点模块。然后通过npm i重新安装了一个新节点模块,并且在ng build之后远离了这个长期存在的错误。