Closed devonsams closed 7 years ago
Thanks for opening an issue! Could you please share a call stack with me? That will help me diagnose the issue much faster.
Thanks!
I'm going to close this issue in a few days if I don't get your response @pos1tron
Sorry for the late reply. You can go ahead and close. I got by this by going back to an older version.
On Wed, Aug 16, 2017 at 10:40 PM, Wilson Hobbs notifications@github.com wrote:
I'm going to close this issue in a few days if I don't get your response @pos1tron https://github.com/pos1tron
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CaliStyle/angular2-intercom/issues/14#issuecomment-322953408, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjzi9sPphsQzqajQtVoVDl6UHa5RJW_ks5sY6gZgaJpZM4O3rPt .
--
So the current version works as expected @pos1tron
@wbhob I'm getting the same error with version 1.0.0-alpha6 published on npm.
Uncaught Error: Unexpected value 'undefined' exported by the module 'IntercomModule'
at syntaxError (compiler.es5.js:1540)
at compiler.es5.js:14508
at Array.forEach (<anonymous>)
at CompileMetadataResolver.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:14506)
at CompileMetadataResolver.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleSummary (compiler.es5.js:14419)
at compiler.es5.js:14492
at Array.forEach (<anonymous>)
at CompileMetadataResolver.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:14477)
at JitCompiler.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.JitCompiler._loadModules (compiler.es5.js:25630)
at JitCompiler.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.JitCompiler._compileModuleAndComponents (compiler.es5.js:25589)
I'm importing the module (using IntercomModule.forRoot({app_id: 'appid'})) in my AppModule. When the application loads, the error from above is thrown.
Any ideas?
@wbhob I found the issue and submitted a pull request with the fix :)
Thank you @flore2003! Released version 1.0.0-beta.0.
I'm using the alpha branch. Importing the module like so:
IntercomModule.forRoot({ app_id: '<%= INTERCOM_ID %>'})