-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng test fails to build lazy loading modules #8066
Comments
This is a bug, will fix. Thank you for the report 👍 |
Try add the file {
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"node"
]
},
"files": [
"test.ts",
"polyfills.ts" // here
],
"include": [
"app/**/*", // here
"**/*.spec.ts",
"**/*.d.ts"
]
} |
The workaround (
|
I'm also running into @Manduro error, even with CLI 1.5.0-rc.5 and Angular 5.0.0-rc.7 |
I am running into the same error as @Manduro with following versions: |
Same issue with Angular CLI: 1.5.0-rc.7 |
#8215 should fix this bug, but we'll probably require users to update their Due to old boilerplate, we had some workarounds for
#8215 should address that. |
We ended up manually adding |
@filipesilva Thanks for the fix! It works as expected. I do have a question. It's noted in Edit: found an issue to track including a workaround: #6325 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
ng new apptest
ng test
The log given by the failure.
Desired functionality.
Should build and run tests
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: