Hi, I'm trying to add i18n support to a plugin, when I add the dependency to package.json
as
"@kbn/i18n": "link:../../packages/kbn-i18n"
I get a version mismatch error:
ERROR [single_version_dependencies] Multiple version ranges for the same dependency
were found declared across different package.json files. Please consolidate
those to match across all package.json files. Different versions for the
same dependency is not supported.
If you have questions about this please reach out to the operations team.
The conflicting dependencies are:
@kbn/i18n
1.0.0 => kibana, @kbn/interpreter, @kbn/ui-shared-deps, x-pack
link:../../packages/kbn-i18n => opendistro_kibana_reports
error Command failed with exit code 1.
When I try to specify a version I'm told to use a link:
ERROR [opendistro_kibana_reports] depends on [@kbn/i18n] but it's not using the local package. Update its package.json to the expected value below.
info Additional debugging info:
│ info actual: "@kbn/i18n": "1.0.0"
│ expected: "@kbn/i18n": "link:../../packages/kbn-i18n"
│ package: opendistro_kibana_reports (/home/superbob/FC/kibanaPlug/kibana/plugins/kibana-reports/package.json)
error Command failed with exit code 1.
How can I use @kbn packages then? I've looked at the kibana plugin list in search of examples and saw they hardly use any @kbn packages. Some use @kbn/plugin-helpers
, which seems to no longer work either in 7.10.2 due to @kbn/optimizer@1.0.0
missing. But that's beside the point, I want to get @kbn/i18n working. Please help.