OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[BUG] Plugins cannot use `@osd/babel-preset/node_preset`

Open joshuali925 opened this issue 1 year ago • 0 comments

Describe the bug

OSD has a babel preset package https://github.com/opensearch-project/OpenSearch-Dashboards/blob/7f0e9d0fcc1fb172c6d4d21ab9a35fcb47700b6f/packages/osd-babel-preset/README.md#L5-L15. But plugins using it throws ERROR [<plugin>] depends on [@osd/babel-preset] but it's not using the local package

To Reproduce Steps to reproduce the behavior:

  1. Create a plugin, or clone https://github.com/kavilla/queryEnhancements at commit ec3734572808df34de001a957d13341404645b8e
  2. follow instructions to add "@osd/babel-preset": "1.0.0", in dev dependencies
  3. Run yarn osd bootstrap
  4. See ERROR [<plugin>] depends on [@osd/babel-preset] but it's not using the local package

Expected behavior No error, plugin should be able to use the babel preset.

OpenSearch Version N/A

Dashboards Version main

Plugins

https://github.com/kavilla/queryEnhancements

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

https://github.com/kavilla/queryEnhancements/pull/14/files#r1653544348 i also tried to add the preset in babel.config.js before bootstrap, but got same error

joshuali925 avatar Jun 25 '24 21:06 joshuali925