question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

babel-plugin-react-intl has been initialised using an options object that does not match the API schema

See original GitHub issue
  • version:
  • node version:
  • npm (or yarn) version: 1.19.0

Do you want to request a feature or report a bug?: Bug

What is the current behavior?:

./node_modules/extract-react-intl-messages/cli.js -o src/i18n/messages -l=en,fr,de -d en --flat false 'src/**/*.js'
ValidationError: [BABEL] /path/to/foo.js: Invalid options object. babel-plugin-react-intl has been initialised using an options object that does not match the API schema.
 - options has an unknown property 'f'. These properties are valid:
   object { moduleSourceName?, enforceDefaultMessage?, enforceDescriptions?, extractSourceLocation?, messagesDir?, overrideIdFn?, removeDefaultMessage?, extractFromFormatMessageCall?, additionalComponentNames
? } (While processing: "base$0$0")
    at Object.validate [as default] (/path/to/node_modules/babel-plugin-react-intl/node_modules/schema-utils/dist/validate.js:50:11)

What is the expected behavior?:

Suggested solution:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Lpaydatcommented, Nov 8, 2019

P.S. This issue does not appear on version 2.2.1

1reaction
akamecocommented, Nov 30, 2019

Fixed. Try update to the latest version 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-intl and babel won't export messages, error in presets
When I attempt to run babel-plugin-react-intl, which should extract the messages to /build/messages, with presets being either "react-app" or " ...
Read more >
babel-plugin-react-intl | Yarn - Package Manager
Extracts string messages for translation from modules that use React Intl. babel-plugin, react-intl. readme. babel-plugin-react-intl. We' ...
Read more >
[Solved]-webpack Object #<Object> has no method 'forEach'
Webpack has been initialised using a configuration object that does not match the API schema · webpack options has an unknown property 'hotOnly'....
Read more >
invalid options object. copy plugin has been initialized using ...
Terser Plugin has been initialized using an options object that does not match the API schema.\n' + " - options has an unknown...
Read more >
babel-plugin-react-intl - npm
Extracts string messages for translation from modules that use React Intl.. Latest version: 8.2.25, last published: 2 years ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found