Describe the bug
When config has option extractors specified — cli prints warning:
● Validation Warning:
Unknown option "extractors" with value [{"extract": [Function extract], "match": [Function match]}] was found.
This is probably a typing mistake. Fixing it will remove this message.
Option itself seem to work tho. However it seems to have extra issue with documentation, usage with require.resolve does not work, usage with reference to extractor — works.
To Reproduce
Add to your config:
const typescript = require('@lingui/cli/api/extractors/typescript');
module.exports = {
extractors: [typescript.default],
};
and run $ lingui extract
Expected behavior
No warnings printed
Additional context
Add any other context about the problem here.
- jsLingui version 3.10.2
- Babel version 7.12.11
- Your Babel config — custom, not involved
Describe the bug
When config has option
extractorsspecified — cli prints warning:Option itself seem to work tho. However it seems to have extra issue with documentation, usage with
require.resolvedoes not work, usage with reference to extractor — works.To Reproduce
Add to your config:
and run
$ lingui extractExpected behavior
No warnings printed
Additional context
Add any other context about the problem here.