-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Bug Report or Feature Request (mark with an x
)
- [X] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [X] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Windows 10
NPM 6.2.0
Angular CLI: 7.0.0-rc.3
Node: 10.8.0
OS: win32 x64
Angular: 7.0.0-rc.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
Package Version
@angular-devkit/architect 0.9.0-rc.3
@angular-devkit/build-angular 0.9.0-rc.3
@angular-devkit/build-optimizer 0.9.0-rc.3
@angular-devkit/build-webpack 0.9.0-rc.3
@angular-devkit/core 7.0.0-rc.3
@angular-devkit/schematics 7.0.0-rc.3
@angular/cdk 7.0.0-rc.2
@angular/cli 7.0.0-rc.3
@angular/material 7.0.0-rc.2
@angular/material-moment-adapter 7.0.0-rc.2
@angular/pwa 0.8.5
@ngtools/webpack 7.0.0-rc.3
@schematics/angular 7.0.0-rc.3
@schematics/update 0.9.0-rc.3
rxjs 6.3.3
typescript 3.1.3
webpack 4.19.1
Repro steps
- Create new project
- Run test
- Add service
- Start added tests to spec file
The log given by the failure
ERROR in ./src/app/common-services/services/language/language.service.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: C:\dev\dotnet\Recon\ResponsiveWeb\v3\src\app\common-services\services\language\language.service.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
at AngularCompilerPlugin.getCompiledFile (C:\dev\dotnet\Recon\ResponsiveWeb\v3\node_modules@ngtools\webpack\src\packages\ngtools\webpack\src\angular_compiler_plugin.ts:1021:15)
at plugin.done.then (C:\dev\dotnet\Recon\ResponsiveWeb\v3\node_modules@ngtools\webpack\src\packages\ngtools\webpack\src\loader.ts:49:29)
at process._tickCallback (internal/process/next_tick.js:68:7)
@ ./src/app/common-services/services/language/language.service.spec.ts 1:0-53 5:22-37
@ ./src sync .spec.ts$
@ ./src/test.ts
Desired functionality
Test should not randomly fail after adding a test case
Mention any other details that might be useful
Using custom schematics that adds an extra directory level under a module