[UPDATE] problem solved, it was a faulty parameters in the constructor, removed, solved.
Hello,
am getting this error, and i cant seem to find the cause.
I’ve looked into some topics here and there, but i couldn’t find a solution for my problem.
here is screenshot:
the error in the browser console:
Uncaught Error: Can't resolve all parameters for MyApp: ([object Object], [object Object], [object Object], ?, [object Object]).
at syntaxError (VM96378 vendor.js:100920)
at CompileMetadataResolver._getDependenciesMetadata (VM96378 vendor.js:116001)
at CompileMetadataResolver._getTypeMetadata (VM96378 vendor.js:115836)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (VM96378 vendor.js:115344)
at CompileMetadataResolver._getEntryComponentMetadata (VM96378 vendor.js:116149)
at VM96378 vendor.js:116130
at Array.forEach (<anonymous>)
at CompileMetadataResolver._getEntryComponentsFromProvider (VM96378 vendor.js:116129)
at VM96378 vendor.js:116084
at Array.forEach (<anonymous>)
syntaxError @ compiler.js:466
CompileMetadataResolver._getDependenciesMetadata @ compiler.js:15547
CompileMetadataResolver._getTypeMetadata @ compiler.js:15382
CompileMetadataResolver.getNonNormalizedDirectiveMetadata @ compiler.js:14890
CompileMetadataResolver._getEntryComponentMetadata @ compiler.js:15695
(anonymous) @ compiler.js:15676
CompileMetadataResolver._getEntryComponentsFromProvider @ compiler.js:15675
(anonymous) @ compiler.js:15630
CompileMetadataResolver._getProvidersMetadata @ compiler.js:15593
(anonymous) @ compiler.js:15081
CompileMetadataResolver.getNgModuleMetadata @ compiler.js:15072
JitCompiler._loadModules @ compiler.js:33542
JitCompiler._compileModuleAndComponents @ compiler.js:33503
JitCompiler.compileModuleAsync @ compiler.js:33419
CompilerImpl.compileModuleAsync @ platform-browser-dynamic.js:230
PlatformRef.bootstrapModule @ core.js:5446
284 @ main.ts:5
__webpack_require__ @ bootstrap 95fd409297642a3ebf6c:54
webpackJsonpCallback @ bootstrap 95fd409297642a3ebf6c:25
(anonymous) @ main.js:1