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
#! /usr/bin/env node
constbabel=require('babel-core')babel.transform('class A {}',{presets: [require('babel-preset-es2015')],plugins: [require('babel-plugin-transform-runtime')]})
Generates this error:
TypeError: unknown: Property callee of CallExpression expected node to be of a type ["Expression"] but instead got null
at Object.validate (/Users/jkroso/Projects/js/6-5/node_modules/babel-types/lib/definitions/index.js:97:13)
at validate (/Users/jkroso/Projects/js/6-5/node_modules/babel-types/lib/index.js:267:9)
at Object.builder (/Users/jkroso/Projects/js/6-5/node_modules/babel-types/lib/index.js:243:7)
at PluginPass.exit (/Users/jkroso/Projects/js/6-5/node_modules/babel-plugin-transform-es2015-modules-commonjs/lib/index.js:401:98)
at newFn (/Users/jkroso/Projects/js/6-5/node_modules/babel-traverse/lib/visitors.js:233:27)
at NodePath._call (/Users/jkroso/Projects/js/6-5/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (/Users/jkroso/Projects/js/6-5/node_modules/babel-traverse/lib/path/context.js:44:17)
at NodePath.visit (/Users/jkroso/Projects/js/6-5/node_modules/babel-traverse/lib/path/context.js:108:8)
at TraversalContext.visitQueue (/Users/jkroso/Projects/js/6-5/node_modules/babel-traverse/lib/context.js:151:16)
at TraversalContext.visitSingle (/Users/jkroso/Projects/js/6-5/node_modules/babel-traverse/lib/context.js:111:19)
The text was updated successfully, but these errors were encountered:
Generates this error:
The text was updated successfully, but these errors were encountered: