You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console
Bug reports:
Running into compilation issue for angular 8.
When I run unit testing for my component, it gives the following error:-
Failed: Can't resolve all parameters for html2canvas: (?, ?).
error properties: Object({ ngSyntaxError: true })
Error: Can't resolve all parameters for html2canvas: (?, ?).
at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
at CompileMetadataResolver._getDependenciesMetadata (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20401:1)
at CompileMetadataResolver._getTypeMetadata (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20296:1)
at CompileMetadataResolver._getInjectableTypeMetadata (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20514:1)
at CompileMetadataResolver.getProviderMetadata (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20523:1)
at providers.forEach (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20461:1)
at <Jasmine>
at CompileMetadataResolver._getProvidersMetadata (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20421:1)
at CompileMetadataResolver.getNgModuleMetadata (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:20148:1)
at JitCompiler._loadModules (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25824:1)
Bug reports:
Running into compilation issue for angular 8.
When I run unit testing for my component, it gives the following error:-
The code I'm using for my component:-
I have also tried using below ways of loading the library but still gives the same error.
Specifications:
The text was updated successfully, but these errors were encountered: