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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -