Closed dylankelly closed 4 months ago
npm run build
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
@elastic/search-ui-app-search-connector
@elastic/search-ui-elasticsearch-connector
1.19.1
[plugin:vite:import-analysis] [VITE_ERROR] ... @dpc-sdp/ripple-tide-search/composables/useSearchUI.ts
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
No response
This should be resolved in https://github.com/dpc-sdp/ripple-framework/pull/1207
Environment
Build Modules: -
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 than1.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