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

Function calls are not supported #12

Closed
wbhob opened this issue Jul 23, 2017 · 2 comments
Closed

Function calls are not supported #12

wbhob opened this issue Jul 23, 2017 · 2 comments

Comments

@wbhob
Copy link
Contributor

wbhob commented Jul 23, 2017

Copied from @craigeddy #11

When I use this version, I'm getting a compile error on ng serve:

ERROR in Error encountered resolving symbol values statically. Calling function 'IntercomModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symb ol AppModule in C:/Users/eddycr/Source/Repos/registration/src/app/app.module.ts, resolving symbol AppModule in C:/U sers/eddycr/Source/Repos/registration/src/app/app.module.ts

the code:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { IntercomModule } from 'ng-intercom';
import { AppComponent } from './app.component';
import { RegisterModel } from './app.registermodel';
import { RegistrationComponent } from 'app/registration/registration.component';

@NgModule({
  declarations: [
    AppComponent,
    RegistrationComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    IntercomModule.forRoot({ app_id: 'sq739kpn'})
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

I also have a repo with my whole project if you want to take a look. I'm probably doing/forgetting something noob-ish. craigeddy/IntercomProtype (angular2-intercom-alpha branch)

@wbhob
Copy link
Contributor Author

wbhob commented Jul 30, 2017

@craigeddy just published v1.0.0-alpha.7, and it seems to be working in my test project. Thanks for all your help testing! Know you're helping all of the other NgIntercom users to get an amazing dev experience!

@craigeddy
Copy link

Cool. I'll give it a try sometime later this week. Thanks!

@wbhob wbhob closed this as completed Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants