Plugin provided an invalid property of "default"
See original GitHub issueTried using the plugin here: https://github.com/pureprofile-warp/babel-preset-pp-node4/blob/master/index.js but on start I get an error:
C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\plugin.js:125
throw new Error(messages.get("pluginInvalidProperty", loc, i, key));
^
Error: Plugin 0 specified in "C:\\dev\\pureprofile\\ah-api-web\\node_modules\\babel-preset-pp-node4\\index.js" provided an invalid property of "default"
at Plugin.init (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\plugin.js:125:13)
at Function.normalisePlugin (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:167:12)
at C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:197:30
at Array.map (native)
at Function.normalisePlugins (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:173:20)
at OptionManager.mergeOptions (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:271:36)
at OptionManager.mergePresets (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:325:16)
at OptionManager.mergeOptions (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:287:12)
at OptionManager.addConfig (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:221:10)
at OptionManager.findConfigs (C:\dev\pureprofile\ah-api-web\node_modules\babel-core\lib\transformation\file\options\option-manager.js:364:16)
[nodemon] app crashed - waiting for file changes before starting...
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
error: 'Plugin 0 provided an invalid property of "default"' when ...
Create a new react-native app: react-native init test --template typescript; Setup typescript support : cd test && node setup.js; getstorybook ...
Read more >bundling failed: Error: Plugin 0 provided an invalid property of ...
This is bug in babel-preset-react-native. Set the version: yarn remove babel-preset-react-native yarn add babel-preset-react-native@2.1.0.
Read more >bundling failed: Error: Plugin 0 provided an invalid property of ...
Coding example for the question bundling failed: Error: Plugin 0 provided an invalid property of "default"-React Native.
Read more >Android – bundling failed: Error: Plugin 0 provided an invalid ...
I'm trying to run a react native app on my AVD using this command : react-native run-android. but getting the following error:
Read more >Upgrade to Babel 7
Presets enable Babel to parse types provided by Flow / TypeScript (and other ... v7 default behavior: ["@babel/plugin-proposal-class-properties"] var Bork ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Because this plugin exports only
exports.default
and doesn’t exportmodule.exports
, maybe you need to putrequire("babel-plugin-transform-builtin-extend").default
instead ofrequire("babel-plugin-transform-builtin-extend")
.I saw a similar error when I was creating this preset. Babel’s official transforms still export both
module.exports
andmodule.exports.default
and that’s why you don’t need to put.default
afterrequire(...)
when requiring them.@kt3k I ran in the same issue, thank you so much for the
.default
workarround 👍