Closed miketheanimal closed 8 years ago
This sounds like an instance of https://phabricator.babeljs.io/T3051, if you update your version of babel-traverse
you should be all set.
Closing, but feel free to let me know if that doesn't work.
For those who are having the same problem, you need to install babel-traverse@6.3.19 globally if you have babel / babel-cli installed globally, too. Otherwise, this will not work.
Yes, sorry should have clarified. babel-traverse
is a subdependency of babel-core
, so really you'll need to update your primary babel install. The easiest thing to do is probably delete and reinstall Babel.
Installing babel
globally is also generally not recommended.
@loganfsmyth I tried, babel-core is at version 6.3.13 and so is babel-traverse when installing it via npm. The only way for me to make this work was to manually install babel-traverse@6.3.19.
@silkentrance Babel uses ranges. babel-core
is at 6.3.17
but it depends on babel-traverse@^6.3.17
which means it will install >=6.3.17 < 7.0.0
@loganfsmyth perhaps we should tell npm@3.3.4 to behave that way :grin:, at least on my system, that is.
Since this is a legacy/maintain old functionality plugin, I'm just reporting this, I realise it may not be worth fixing, the plugin is great anyway and has saved me a lot of trouble :)
The following (stripped down a bit) works:
but the decorated version doesn't:
The full error: