babeljs - The plugin "transform-class-properties" didn't export a Plugin instance -
i willing use es6/7 transform class properties feature using babel. following steps mentioned here. have created .babelrc file contents:
{ "plugins": ["transform-class-properties"] } on executing webpack -p following error shows up:
error in ./src/main.js module build failed: typeerror: plugin "transform-class-properties" didn't export plugin instance @ pluginmanager.validate (../node_modules/babel-core/lib/transformation/file/plugin-manager.js:164:13) any idea whats wrong? thanks.
transform-class-properties babel 6 plugin, , trying use babel 5. in babel 5, do
"optional": ["es7.classproperties"] or update babel 6.
Comments
Post a Comment