Git Product home page Git Product logo

Comments (5)

saschagehlich avatar saschagehlich commented on May 18, 2024

Same for me!

from babelify.

simonzack avatar simonzack commented on May 18, 2024

babel._util is not exported I think so babel._util.regexify is giving undefined.

https://github.com/babel/babel/blob/4df9cf6c0516551edba96601cc272e2936e7addc/src/babel/api/node.js#L5.

from babelify.

simonzack avatar simonzack commented on May 18, 2024

babel.transform is suffering from the same problem.

from babelify.

andrewlmurray avatar andrewlmurray commented on May 18, 2024

So in package.json it looks like babelify is pinned to use anything newer than 4.0.0 of babel core.
If 5.0.3 is broken for you is purely a function of when you installed it. (I originally installed 5.0.3 a couple weeks ago and it was fine, tried to use the same project on a different machine with a clean install and it is broken) This is due to the fact that which version of babel-core you get isn't fixed.

For all new installers (who aren't pinning a version of babel-core in their dev dependencies) 5.0.3 will be broken. (Unless a new version of babel is released that exposes ._util in babel-core)

Perhaps it is worth just pinning to a stable version of babel-core in dev-dependencies and upgrading it in lockstep with babelify releases? It seems this would prevent errors of this form - I'm unsure if there would be undesirable effects form such a scheme.

You can fix this locally for now by pinning babel-core in your dev-dependencies to 4.3.0

devDependencies": {
    "babel-core": "4.3.0",
    "babelify": "5.0.3",
...

from babelify.

sebmck avatar sebmck commented on May 18, 2024

Should be fixed as of Babel 4.6.1, sorry everyone!

from babelify.

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.