Code Monkey home page Code Monkey logo

Comments (6)

quentin-ol avatar quentin-ol commented on May 13, 2024

👍 for finding references to this issue!

I'm currently working on a clean-up of the code (code itself+documentation).
This should hit the repo soon. Hoping to solve most of the open issues !

from ngx-openlayers.

quentin-ol avatar quentin-ol commented on May 13, 2024

I've had similar issues with Angular2 and Typescripts version 2.1.x.
As for now, angular2 is not compatible with typescript 2.1.x. Could you check which version of typescript you're using ?

from ngx-openlayers.

alienlike avatar alienlike commented on May 13, 2024

I was using TS 2.1, but after downgrading to 2.0 the problem persists.

from ngx-openlayers.

quentin-ol avatar quentin-ol commented on May 13, 2024

from ngx-openlayers.

alienlike avatar alienlike commented on May 13, 2024

Here you have it.

  "dependencies": {
    "@angular/common": "~2.1.0",
    "@angular/compiler": "~2.1.0",
    "@angular/core": "~2.1.0",
    "@angular/forms": "~2.1.0",
    "@angular/http": "~2.1.0",
    "@angular/platform-browser": "~2.1.0",
    "@angular/platform-browser-dynamic": "~2.1.0",
    "@angular/router": "~3.1.0",
    "angular2-openlayers": "file:../../../angular2-openlayers",
    "bootstrap": "^4.0.0-alpha.5",
    "core-js": "^2.4.1",
    "font-awesome": "^4.7.0",
    "lodash": "^4.16.6",
    "moment": "^2.15.1",
    "openlayers": "^3.19.1",
    "reflect-metadata": "^0.1.8",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "^0.6.25"
  }

I have angular2-openlayers locally, at commit 06b69dbc51458b with the following change to work around #26:

diff --git a/tsconfig.json b/tsconfig.json
index 67973c0..d79ae01 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,7 +1,7 @@
 {
     "compilerOptions": {
         "noImplicitAny": true,
-        "module": "es2015",
+        "module": "commonjs",
         "moduleResolution": "node",
         "target": "es5",
         "emitDecoratorMetadata": true,

from ngx-openlayers.

quentin-ol avatar quentin-ol commented on May 13, 2024

this should be fixed with v0.5.0

from ngx-openlayers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.