Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Build failed with angular-cli #37

@cbeaujoin

Description

@cbeaujoin

Using angular-cli instead of system.config.js

angular-cli.json :

...
"apps": [
    { 
      ...
  "styles": [
 "../node_modules/mapbox-gl/dist/mapbox-gl.css"
      ],
"scripts": [
        "../node_modules/mapbox-gl/dist/mapbox-gl.js",
        "../node_modules/angular2-mapbox/core/core.umd.js"
       ]
}

And following the other steps of install, provides the following error

ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in C:/dev/workspace/app/node_modules/angular2-mapbox/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in C:/dev/workspace/app/node_modules/angular2-mapbox/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in C:/dev/workspace/app/node_modules/angular2-mapbox/node_modules/@angular/core/src/di/opaque_token.d.ts

It seams to be an AOT issue.

Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions