babel-gettext-extractor icon indicating copy to clipboard operation
babel-gettext-extractor copied to clipboard

Plugin provided an invalid property of "default"

Open mandx opened this issue 7 years ago • 3 comments

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?

mandx avatar Feb 10 '17 16:02 mandx