You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using @Radium decorators in our jsx file and running react-codemods which is giving
ERR [ *path* ] Transformation error
SyntaxError: Unexpected token (16:0)
at Parser.pp$5.raise (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:4454:13)
at Parser.pp.unexpected (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:1761:8)
at Parser.pp$1.parseDecorator (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:1939:10)
at Parser.pp$1.parseDecorators (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:1924:26)
at Parser.pp$1.parseStatement (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:1818:10)
at Parser.pp$1.parseBlockBody (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:2268:21)
at Parser.parseBlockBody (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:4820:18)
at Parser.pp$1.parseTopLevel (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:1778:8)
at Parser.parse (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:1673:17)
at Object.parse (/Users/farhan/.config/yarn/global/node_modules/jscodeshift/node_modules/babylon/lib/index.js:7305:37)
How to use babel plugins like transform-decorators-legacy with jscodeshift.
The text was updated successfully, but these errors were encountered:
We are using
@Radium
decorators in our jsx file and runningreact-codemods
which is givingHow to use babel plugins like
transform-decorators-legacy
with jscodeshift.The text was updated successfully, but these errors were encountered: