Git Product home page Git Product logo

Comments (5)

thanhnguyenminh avatar thanhnguyenminh commented on July 19, 2024

I got the same error with @sdeuvarow

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on July 19, 2024

The current version of the service exposes two entry points:
"main": "index.js": compiled from TypeScript with ES5 target and ES2015 module structure
"jsnext:main": "esm/index.js": compiled from TypeScript with ES2015 target and ES2015 module structure

So in either case the module loader has to be able to understand ES2015 module structure (e.g. Webpack2 now has native support for loading with ES2015 module structure. This is what angular-cli uses under the hood.)

As your above code references traceur are you set up to handle ES2015 modules?

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on July 19, 2024

In the case of systemJS there is also the SystemJS Babel plugin.

I used SystemJs with Angular 1.x, but have since moved away from it alongside the move angular-cli made.

I contemplated earlier to provide a UMD entry point, but ran into some issues with the combined Rollup of the d3 modules and the bundle/service parts of this library.

from d3-ng2-service.

sdeuvarow avatar sdeuvarow commented on July 19, 2024

Finally I decided to update my app to use webpack of angular-cli. So, as u told, I don't have the issue using webpack.

Thanks!

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on July 19, 2024

That's the other way to go... 😄

from d3-ng2-service.

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.