Giter Site home page Giter Site logo

Importing issue about ngx-openlayers HOT 8 CLOSED

quentin-ol avatar quentin-ol commented on May 22, 2024
Importing issue

from ngx-openlayers.

Comments (8)

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

Sorry, I'm kinda swamped today. I will look into this tomorrow.

So, if I understand well (otherwise correct me):

  • this issue is due the lack of AOT support in angular2-openlayers.
  • angular-cli beta 22 adopted AOT and broke the import (wild guess there).
  • you're workin on a PR to make angular2-openlayers AOT-compliant (friendly ?)

Thanks again, your help is much appreciated !

from ngx-openlayers.

FallenRiteMonk avatar FallenRiteMonk commented on May 22, 2024

You are correct in all 3 points, with the little extra to say that beta 22 didn't adopt AOT but made it default (on purpose or not) angular/angular-cli#3368.

Still I think it is important to generally be AOT compliant and also angular-cli complient, since I thing/guess the cli will be the future default boilerplate for angular2 apps and AOT because I'd rater decline this library then AOT since it gave me a extreme performance boost on one of my apps (Loading time form 10sec to 2sec, with no other changes then just compiling using AOT)

from ngx-openlayers.

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

I believe this issue is solved, could you double-check and close it ?

from ngx-openlayers.

FallenRiteMonk avatar FallenRiteMonk commented on May 22, 2024

Sorry I was on the road for a few days, so I couldn't test. I saw you merged everything so I tried importing version 0.4.1 from npm and tried running it with aot, but the map stayed blank.

I don't know exactly what the problem now is, but I'll have a look and let you know. In the mean while could you please tell me exactly what procedure you run in order to publish on npm.

from ngx-openlayers.

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

I'm using the npm publish command.
The complete workflow is given here: https://docs.npmjs.com/getting-started/publishing-npm-packages

from ngx-openlayers.

FallenRiteMonk avatar FallenRiteMonk commented on May 22, 2024

Do you have to run npm run prepublish befror npm publish or is that automatically done like with npm pack?

from ngx-openlayers.

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

Hey!
No need to run prepublish prior to npm publish as it takes care of it. Here is the output of npm publish:

$[edited...]npm publish

> [email protected] prepublish /[edited...]/angular2-openlayers
> ngc

+ [email protected]

from ngx-openlayers.

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

Closing as angular2-openlayers is now AOT compliant.
Feel free to reopen if need be

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.