Comments (13)
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.
reference babel/babel#1315
from babel-plugin-rewire.
@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.
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.
it fixes this issue but created a new problem
from babel-plugin-rewire.
Can you post more details? I'm in the process of upgrading now but haven't noticed any problems yet.
from babel-plugin-rewire.
from babel-plugin-rewire.
@Rodeoclash 0.1.4 is definitively broken. I wouldn't upgrade to this version.
from babel-plugin-rewire.
@Rodeoclash 0.1.5 should be safe again.
from babel-plugin-rewire.
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.
@bsr203 - delete your node modules, then reinstall all babel and rewire related libraries. That should fix the problem.
from babel-plugin-rewire.
@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.
thanks guys can confirm that this is now working again on 0.1.5
from babel-plugin-rewire.
Related Issues (20)
- Broken bundles after upgrade to 1.2.0 HOT 1
- Error with `babel/preset-typescript` HOT 4
- How can I enable this for one module only? HOT 1
- Simply including this breaks lots of things
- Not working with jest, Invalid variable access: _get__ HOT 6
- Thanks for a great plugin! I'd suggest adding dynamic import syntax to the readme! :) HOT 2
- Windows 10 and Ubuntu output different code HOT 2
- can not work with element-ui
- Webpack bundle size increases dramatically with rewire HOT 1
- babel/plugin-transform-typescript and rewire HOT 1
- Documentation clarification
- Documentation clarification
- Documentation clarification HOT 1
- rewire seems to break `import * as foo from 'module'` HOT 1
- property names as variable names don't work in babel-plugin-rewire
- __Rewire__ is not a function HOT 1
- babel-plugin-rewire does not work in a Typescript project HOT 5
- Maintenance Request, is this repo actively maintained?
- Any plan to port this plugin to SWC?
- Integration with CRACO HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-rewire.