-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
@angular-builders/custom-webpack:karma fails compiling TypeScript with activated strictNullChecks #749
Comments
Is this just Karma issue? No problems with |
Yes, just Karma. |
Ok. A few findings:
|
Can confirm, that the problem is fixed in my project setup, when avoiding the Would vote for |
just had a similar issue in e2e-specs.
seems like there were two different helpers for the awaiter (one for the code from the spec and one for the code of the component harness) ... stopped further investigations since the |
@e-hein you use plain Karma builder and you got this error too? Did you solve it by setting |
|
got it (in my case):
now I moved the code into the onPrepare method of my protractor.conf: onPrepare() {
const tsNode = require('ts-node');
require('tsconfig-paths/register');
tsNode.register({
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
} and reactivated Result:
|
@e-hein Great news! I'm not sure how |
I have the same issue with My workspace
I have my
So, what about this issue ? Any solution ? Thanks for the efforts <3 |
The issue is that there are two instances of |
I removed |
Describe the Bug
When a custom webpack config is provided written in TypeScript, @angular-builders/custom-webpack:karma throws an error if strictNullChecks are activated.
Minimal Reproduction
https://github.com/Markus-Ende/custom-webpack-builder-strictnullchecks-issue
npm test
.(Deactive strictNullChecks in tsconfig.json to see, that the Error does only occur when activated)
Expected Behavior
Karma tests should run normally.
Error output
Environment
The text was updated successfully, but these errors were encountered: