Skip to content

Error encountered resolving symbol values statically #133

@stephanrauh

Description

@stephanrauh

If I interpret the error message correctly, Angular 2.4 doesn't allow functions in the AppModule. However, my search also revealed similar error messages indicating missing metadata. Be that as it may, adding a Polymer element to the AppModule causes compile errors.

I've added the declaration of a Polymer element to the @NgModule:

@NgModule({
  declarations: [
    AppComponent,
    PolymerElement('app-header-layout'),
  ],
  ... 
}

Running ng serve on @angular/cli version 1.0.0-beta.31 results in this error:

ERROR in Error encountered resolving symbol values statically. Calling function 'PolymerElement', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /Users/stephan/git/angular2kurs/ng2-15b-adding-polymer/src/app/app.module.ts, resolving symbol AppModule in /Users/stephan/git/angular2kurs/ng2-15b-adding-polymer/src/app/app.module.ts

Any ideas how to solve this error? Can I do something about it myself? Is it an incompatibility to Angular 2.4.x or Angular CLI beta 31?

Thanks in advance
Stephan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions