Skip to content

Redundant warning Unknown option "extractors" #1110

@gbiryukov

Description

@gbiryukov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions