Git Product home page Git Product logo

Comments (13)

geekyme avatar geekyme commented on June 2, 2024

when i uninstalled everything and reinstalled again, i get a new set of errors:

Module build failed: TypeError: /Users/shawnlim/Documents/react/Boa/tests/components/pagination/pagination-prev-next.spec.js: Cannot read property 'start' of undefined
    at NodePath.errorWithNode (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/path/index.js:119:28)
    at NodePath.Scope (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/transformation/transformers/es6/constants.js:23:23)
    at NodePath.<anonymous> (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/visitors.js:190:17)
    at NodePath.call (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/path/context.js:122:26)
    at NodePath.visit (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/path/context.js:146:8)
    at TraversalContext.visitSingle (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/context.js:105:12)
    at TraversalContext.visit (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/context.js:117:19)
    at Function.traverse.node (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/index.js:67:17)
    at traverse (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/traversal/index.js:50:14)
    at TransformerPass.transform (/Users/shawnlim/Documents/react/Boa/node_modules/babel-core/lib/babel/transformation/transformer-pass.js:39:32)
 @ ./tests/components .spec\.js$

from babel-plugin-rewire.

geekyme avatar geekyme commented on June 2, 2024

reference babel/babel#1315

from babel-plugin-rewire.

damassi avatar damassi commented on June 2, 2024

@speedskater - this just happened to me as well. Commenting out the plugin fixed the problem. Also, see this comment: babel/babel#1315 (comment)

from babel-plugin-rewire.

speedskater avatar speedskater commented on June 2, 2024

This was an issue with renaming of variables. After using the babel scope api the issue should be fixed.
Therefore a new version containing the fix was published (0.1.4).

@damassi, @geekyme let me know if this solves your issues.

from babel-plugin-rewire.

geekyme avatar geekyme commented on June 2, 2024

it fixes this issue but created a new problem

from babel-plugin-rewire.

Rodeoclash avatar Rodeoclash commented on June 2, 2024

Can you post more details? I'm in the process of upgrading now but haven't noticed any problems yet.

from babel-plugin-rewire.

geekyme avatar geekyme commented on June 2, 2024

#11

from babel-plugin-rewire.

speedskater avatar speedskater commented on June 2, 2024

@Rodeoclash 0.1.4 is definitively broken. I wouldn't upgrade to this version.

from babel-plugin-rewire.

speedskater avatar speedskater commented on June 2, 2024

@Rodeoclash 0.1.5 should be safe again.

from babel-plugin-rewire.

bsr203 avatar bsr203 commented on June 2, 2024

Hi, did the original issue solved. I get error

Module build failed: TypeError: Transformer "rewire" is resolving to a different Babel version to what is doing the actual transformation...
    at Transformer.buildPass (/Users/bsr/schema/node_modules/babel-core/lib/babel/transformation/transformer.js:114:13)
    at PluginManager.add (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/file/plugin-manager.js:138:55)
    at File.buildTransformers (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/file/index.js:287:21)
    at new File (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/file/index.js:150:10)
    at TransformerPipeline.transform (/usr/local/lib/node_modules/babel-loader/node_modules/babel-core/lib/babel/transformation/transformer-pipeline.js:96:16)
    at transpile (/usr/local/lib/node_modules/babel-loader/index.js:10:22)

versions

"babel": "^5.5.6",
    "babel-core": "^5.5.6",
    "babel-eslint": "^3.1.15",
    "babel-loader": "^5.1.4",
    "babel-plugin-rewire": "^0.1.5",

from babel-plugin-rewire.

damassi avatar damassi commented on June 2, 2024

@bsr203 - delete your node modules, then reinstall all babel and rewire related libraries. That should fix the problem.

from babel-plugin-rewire.

bsr203 avatar bsr203 commented on June 2, 2024

@damassi thanks for the help. I tried everything, and seems like this is the issue.
babel/babel-loader#58
I use webpack babel-loader :-(

I has dependency on older version

looks like the plugin api is changed and should use babel directly

http://babeljs.io/docs/advanced/plugins/

It was the issue with babel-loader and applying above mentioned patch worked for me. phew !

from babel-plugin-rewire.

geekyme avatar geekyme commented on June 2, 2024

thanks guys can confirm that this is now working again on 0.1.5

from babel-plugin-rewire.

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.