babel-gettext-extractor
babel-gettext-extractor copied to clipboard
Plugin provided an invalid property of "default"
Using [email protected]
, [email protected]
, [email protected]
and this .babelrc
file:
{
"presets": [
["latest", {
"es2015": {
"modules": false
}
}],
"stage-3",
"react"
],
"plugins": [
"babel-plugin-transform-class-properties",
"babel-plugin-transform-runtime",
"babel-gettext-extractor",
"./bin/babel-relay-schema-plugin"
]
}
After a quick googling, I went into my local node_modules/babel-gettext-extractor
and changed this line from:
exports.default = function() {
to:
module.exports = function() {
And then it worked perfectly.
Is there a Babel config option I'm missing?