-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many warnings thrown saying .ts files are missing #39
Comments
I am getting something similar but only for spec files below is a snip [INFO] WARNING in ./ 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. see auth0/angular2-jwt#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/@ng-idle/core/index.js 1:0-72 7:0-46Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 2:0-70 9:0-45Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 3:0-27Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 4:0-36Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 5:0-38Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 6:0-49Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 8:0-44Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 10:0-35Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 11:0-33Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 12:0-35Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 13:0-35Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 14:0-41Cannot 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'
@ ./
@ ./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/@ng-idle/core/index.js 16:0-44Cannot 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'
@ ./
@ ./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/@ng-idle/core/src/idle.js 3:0-40Cannot 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/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/@ng-idle/core/src/localstorage.js 2:0-58Cannot 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/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.5The text was updated successfully, but these errors were encountered: