-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Problem with import timepicker to shared.module.ts #3
Comments
It occurs when you try to import Timepicker module to SharedModule ? What does it mean you try to "share" it ? |
It mean that I just want to put this module to SharedModule and use Timepicker in different module than app.module.ts |
Can you download you app to github and show me? Or just show me the way you use it please |
Unfortunately I can't upload app code anywhere, so I will try to explain it. Important app dir structure: shared.module.ts has array named EXTERNAL_LIBRARIES_MODULES which includes modules of external libraries and this array is passed to shared.module.ts @NgModule imports array. and this shared.module.ts is imported in app.module.ts If it is't clear and understandable enough let me know. |
Yes, it's clear enough. Which version of angular do you use? |
@angular/core 5.2.4 and @angular-cli 1.6.8 |
Ok, i'll try to reproduce it by my own |
I guess I found the problem. I updated library to 1.1.2 update it and tell me |
It works! Thank you so much for help! 😃 |
When I try to include timepicker to shared.module.ts I get this error:
compiler.js:485 Uncaught Error: Unexpected value '[object Object]' exported by the module 'SharedModule' at syntaxError (compiler.js:485) at eval (compiler.js:15247) at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (compiler.js:15245) at CompileMetadataResolver.getNgModuleSummary (compiler.js:15132) at eval (compiler.js:15230) at Array.forEach (<anonymous>) at CompileMetadataResolver.getNgModuleMetadata (compiler.js:15208) at JitCompiler._loadModules (compiler.js:34404) at JitCompiler._compileModuleAndComponents (compiler.js:34365)
There is no problem when I import it to app.module and use in app.component, but this error occurs every time I try to "share" it. Could you please tell me what I'm doing wrong or fix it?
The text was updated successfully, but these errors were encountered: