yagajs / leaflet-ng2

Angular.io integration of Leaflet
https://leaflet-ng2.yagajs.org
ISC License
66 stars 26 forks source link

ERR! integrates with angular-CLI #204

Closed Jerry-goodboy closed 7 years ago

Jerry-goodboy commented 7 years ago

development environment

  1. Mac image

  2. vscode image

  3. angular-cli to create angularV2 app, not angularV4 app image

  4. develop language: typescript

  5. error info image

@marcjansen @atd-schubert @mks85 @mwheregroup @OpenSteveMap

Jerry-goodboy commented 7 years ago

@marcjansen @atd-schubert @OpenSteveMap @mks85 @mwheregroup

atd-schubert commented 7 years ago

I think you have a problem with different angular-core versions. We already replaced the dependency of angular with a peer dependency (look at this), but did not publish it in a release candidate. You should be able to test this issue quickly by removing the node_modules/@angular folder within the @yaga/leaflet-ng2 folder. In your case you have to run a command like this:

rm -Rf /Users/lcd/app/angular2App/ygzx-ng2-leaflet-sass/node_modules/@yaga/leaflet-ng2/node_modules/@angular

Alternatively you can install yaga/leaflet-ng2 from the github-repository and test it with the newest, but unpublished version

After that you can try running ng serve again, like you describe before.

If this fixes your problem, please give a short feedback and we will publish a new release candidate to prevent the bug...

kattsushi commented 7 years ago

1+

kaynz commented 7 years ago

@atd-schubert

Please publish a new release candidate. Removing the node_modules works as a workaround.

atd-schubert commented 7 years ago

Changes implemented into RC5 and uploaded to npm