Git Product home page Git Product logo

Comments (5)

tomwanzek avatar tomwanzek commented on July 18, 2024

angular-cli @latest (beta.15) package.json uses webpack 2 ("webpack": "2.1.0-beta.22"). Webpack 2 has native ES 6 import support. See the webpack roadmap and their pre-releases.

The package.json for the webpack intro you are starting from is based on webpack ^1.13.0, so there would be additional ES 6 support required in the config/loaders.

Other than opting for angular-cli directly, if you want to roll it yourself, webpack 2 might be a an alternative starting point. I know it's beta...

from d3-ng2-service.

vcernomschi avatar vcernomschi commented on July 18, 2024

Thanks @tomwanzek. Now is working fine.

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on July 18, 2024

Which road did you take? Sorry, if I did not have a ton of time for this right now. I have started working on beefing up the D3 module definitions that feed DefinitelyTyped / @types with JSDoc comments. Was one of my remaining todo's on the major re-write. A bit tedious, but ultimately worth it for the long run...

from d3-ng2-service.

vcernomschi avatar vcernomschi commented on July 18, 2024

Cool :) I updated my package.json to have the same webpack versions as in angular-cli.
There are also some changes in extract-text-webpack-plugin. So I did some minor changes in my webpack.common.js, because ExtractTextPlugin in beta uses one parameter.

Now I am going to create some line and bar charts from https://bl.ocks.org/mbostock

Thanks for your assistance @tomwanzek!

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on July 18, 2024

Great!

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.