Skip to content
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

Error: Unexpected value 'undefined' exported by the module 'IntercomModule' #14

Closed
devonsams opened this issue Aug 15, 2017 · 7 comments

Comments

@devonsams
Copy link
Contributor

I'm using the alpha branch. Importing the module like so: IntercomModule.forRoot({ app_id: '<%= INTERCOM_ID %>'})

@wbhob
Copy link
Contributor

wbhob commented Aug 15, 2017

Thanks for opening an issue! Could you please share a call stack with me? That will help me diagnose the issue much faster.

Thanks!

@wbhob
Copy link
Contributor

wbhob commented Aug 17, 2017

I'm going to close this issue in a few days if I don't get your response @Pos1tron

@devonsams
Copy link
Contributor Author

devonsams commented Aug 17, 2017 via email

@wbhob
Copy link
Contributor

wbhob commented Aug 19, 2017

So the current version works as expected @Pos1tron

@flore2003
Copy link
Contributor

@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?

@flore2003
Copy link
Contributor

@wbhob I found the issue and submitted a pull request with the fix :)

wbhob added a commit that referenced this issue Aug 22, 2017
Fixed issue with circular dependency leading to error described in #14
@wbhob
Copy link
Contributor

wbhob commented Aug 22, 2017

Thank you @flore2003! Released version 1.0.0-beta.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants