I'm facing an issue while attempting to integrate a custom shared component library into my Angular application, which has been upgraded from Angular 5 to Angular 4.
Unfortunately, I am unable to resolve the problem at hand.
The error message I'm encountering is:
compiler.js:485 Uncaught Error: Can't resolve all parameters for LibSharedComponentsModule: ([object Object], ?, ?).
at syntaxError (compiler.js:485)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:15692)
at CompileMetadataResolver._getTypeMetadata (compiler.js:15527)
at CompileMetadataResolver.getNgModuleMetadata (compiler.js:15326)
at CompileMetadataResolver.getNgModuleSummary (compiler.js:15125)
at eval (compiler.js:15223)
at Array.forEach (<anonymous>)
at CompileMetadataResolver.getNgModuleMetadata (compiler.js:15201)
at JitCompiler._loadModules (compiler.js:34385)
at JitCompiler._compileModuleAndComponents (compiler.js:34346)
syntaxError @ compiler.js:485
CompileMetadataResolver._getDependenciesMetadata @ compiler.js:15692
CompileMetadataResolver._getTypeMetadata @ compiler.js:15527
CompileMetadataResolver.getNgModuleMetadata @ compiler.js:15326
CompileMetadataResolver.getNgModuleSummary @ compiler.js:15125
(anonymous) @ compiler.js:15223
CompileMetadataResolver.getNgModuleMetadata @ compiler.js:15201
JitCompiler._loadModules @ compiler.js:34385
JitCompiler._compileModuleAndComponents @ compiler.js:34346
JitCompiler.compileModuleAsync @ compiler.js:34240
CompilerImpl.compileModuleAsync @ platform-browser-dynamic.js:239
PlatformRef.bootstrapModule @ core.js:5551
(anonymous) @ main.ts:11
../../../../../src/main.ts @ main.bundle.js:174
__webpack_require__ @ inline.bundle.js:55
0 @ main.bundle.js:189
__webpack_require__ @ inline.bundle.js:55
webpackJsonpCallback @ inline.bundle.js:26
(anonymous) @ main.bundle.js:1
The LibSharedComponentsModule
is the name of my library, but I can't figure out what the parameters error is pointing towards.
Below, I've pasted the code for both my AppModule
and LibSharedComponentsModule
:
AppModule
// Code for AppModule goes here...
LibSharedComponentsModule
// Code for LibSharedComponentsModule goes here...
If anyone could provide guidance on debugging this error or suggest ways to resolve it, your assistance would be greatly appreciated. My project is using Webpack
, in case that information helps in any way.