dpc-sdp / ripple-framework

Ripple is the presentation layer for building websites on the DPC Single Digital Presence platform.
Apache License 2.0
20 stars 13 forks source link

[BUG] Build failing with error in useSearchUI composable #1205

Closed dylankelly closed 4 months ago

dylankelly commented 4 months ago

Environment


Reproduction

npm run build

Describe the bug

It seems the latest versions of searchUI now export ESM modules. Projects that have @elastic/search-ui-app-search-connector and @elastic/search-ui-elasticsearch-connector greater than 1.19.1 arent building and fail with error

[plugin:vite:import-analysis] [VITE_ERROR] ... @dpc-sdp/ripple-tide-search/composables/useSearchUI.ts

Additional context

See https://github.com/elastic/search-ui/compare/v1.21.2...v1.21.3

Workaround is to pin search UI versions: EG

npm install --save --save-exact @elastic/search-ui@1.19.1 @elastic/search-ui-app-search-connector@1.19.1 @elastic/search-ui-elasticsearch-connector@1.19.1 -D

Logs

No response

Final checks

dylankelly commented 4 months ago

This should be resolved in https://github.com/dpc-sdp/ripple-framework/pull/1207