Open Darshan-popin opened 7 years ago
I am getting something similar but only for spec files below is a snip
[INFO] WARNING in ./~/@ng-idle/core/src/keepalivesvc.js [INFO] (Emitted value instead of an instance of Error) Cannot find source file '../../../../modules/core/src/keepalivesvc.ts': Error: Can't resolve '../../../../modules/core/src/keepalivesvc.ts' in '/Users/johnreynolds/src/tiatus/server/node_modules/@ng-idle/core/src' [INFO] @ ./~/@ng-idle/core/index.js 10:0-35
I guess it is due to the source maps pointing to the modules folder containing which is stripped when packaging both core and keepalive
I'm getting the same. Is there an update to this?
I was having the issues in my webpack tests run using the source-map-loader and is due to the @ng-idle not having the ts sources in the npm tarball. This is as angular and rxjs do. As angular and rxjs have this issue when using the source-map-loader I had excludes in place for them, I just added another entry to the source-map-loader exclude list.
see https://github.com/auth0/angular2-jwt/pull/297 for the source-map-loader config.
Ah I see. Thanks!
I have the same issue too, is there any fix for this?
I'm submitting a ... (check one with "x")
Current behavior Getting the following list of error when built with latest CLI using ng Eject option
WARNING in ./~/@ng-idle/core/index.js Cannot find source file '../../../modules/core/index.ts': Error: Can't resolve '../../../modules/core/index.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core' @ ./src/app/core/ncpapp.module.ts 22:0-45 @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/documentinterruptsource.js Cannot find source file '../../../../modules/core/src/documentinterruptsource.ts': Error: Can't resolve '../../../../modules/core/src/documentinterruptsource.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 1:0-72 7:0-46 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/storageinterruptsource.js Cannot find source file '../../../../modules/core/src/storageinterruptsource.ts': Error: Can't resolve '../../../../modules/core/src/storageinterruptsource.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 2:0-70 9:0-45 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/idle.js Cannot find source file '../../../../modules/core/src/idle.ts': Error: Can't resolve '../../../../modules/core/src/idle.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 3:0-27 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/interruptargs.js Cannot find source file '../../../../modules/core/src/interruptargs.ts': Error: Can't resolve '../../../../modules/core/src/interruptargs.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 4:0-36 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/interruptsource.js Cannot find source file '../../../../modules/core/src/interruptsource.ts': Error: Can't resolve '../../../../modules/core/src/interruptsource.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 5:0-38 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/eventtargetinterruptsource.js Cannot find source file '../../../../modules/core/src/eventtargetinterruptsource.ts': Error: Can't resolve '../../../../modules/core/src/eventtargetinterruptsource.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 6:0-49 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/windowinterruptsource.js Cannot find source file '../../../../modules/core/src/windowinterruptsource.ts': Error: Can't resolve '../../../../modules/core/src/windowinterruptsource.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 8:0-44 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/keepalivesvc.js Cannot find source file '../../../../modules/core/src/keepalivesvc.ts': Error: Can't resolve '../../../../modules/core/src/keepalivesvc.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 10:0-35 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/idleexpiry.js Cannot find source file '../../../../modules/core/src/idleexpiry.ts': Error: Can't resolve '../../../../modules/core/src/idleexpiry.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 11:0-33 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/simpleexpiry.js Cannot find source file '../../../../modules/core/src/simpleexpiry.ts': Error: Can't resolve '../../../../modules/core/src/simpleexpiry.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 12:0-35 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/localstorage.js Cannot find source file '../../../../modules/core/src/localstorage.ts': Error: Can't resolve '../../../../modules/core/src/localstorage.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 13:0-35 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/localstorageexpiry.js Cannot find source file '../../../../modules/core/src/localstorageexpiry.ts': Error: Can't resolve '../../../../modules/core/src/localstorageexpiry.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 14:0-41 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/module.js Cannot find source file '../../../../modules/core/src/module.ts': Error: Can't resolve '../../../../modules/core/src/module.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/index.js 16:0-44 @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/interrupt.js Cannot find source file '../../../../modules/core/src/interrupt.ts': Error: Can't resolve '../../../../modules/core/src/interrupt.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/src/idle.js 3:0-40 @ ./~/@ng-idle/core/index.js @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
WARNING in ./~/@ng-idle/core/src/alternativestorage.js Cannot find source file '../../../../modules/core/src/alternativestorage.ts': Error: Can't resolve '../../../../modules/core/src/alternativestorage.ts' in 'D:\NCP UI FrameWork\A2- Working space\ncpapp-8th version\node_modules\@ng-idle\core\src' @ ./~/@ng-idle/core/src/localstorage.js 2:0-58 @ ./~/@ng-idle/core/index.js @ ./src/app/core/ncpapp.module.ts @ ./src/main.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./src/main.ts
Expected behavior NO warnings should be thrown
Minimal reproduction of the problem with instructions node: 6.9.5 os: win32 x64 @angular/common: 2.4.8 @angular/compiler: 2.4.8 @angular/compiler-cli: 2.4.8 @angular/core: 2.4.8 @angular/forms: 2.4.8 @angular/http: 2.4.8 @angular/platform-browser: 2.4.8 @angular/platform-browser-dynamic: 2.4.8 @angular/platform-server: 2.4.8 @angular/router: 3.4.8 @angular/cli: 1.0.0-beta.32.3 In this config after using ng eject and running command npm start
node --version
= v6.9.5