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
(oryarn
) 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:
- Created 4 years ago
- Reactions:12
- Comments:6 (1 by maintainers)
Top 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 >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
P.S. This issue does not appear on version 2.2.1
Fixed. Try update to the latest version 🚀