search-ui
search-ui copied to clipboard
Correct exports for nuxt/svelte
Description
On Nuxt3 or Svelte projects, an 500 error is returned with this message :
SyntaxError: Named export 'SearchDriver' not found. The requested module '@elastic/search-ui' is a CommonJS module, which may not support all module.exports as named exports.
List of changes
Add correct exports on package.json files to use ESM module on SvelteKit or Nuxt
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
}
}
}
Associated Github Issues
Resolve #952 #938 #953
💚 CLA has been signed
I signed the Contributor Agreement, how to recheck it ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.
It looks like this was not merged into the elastic:main @joemcelroy
Yes, I confirm that it was not merged. Can you reopen this pull request ?
Is there anything I can do to bump this pull request?
I'm so excited to get this reviewed!
Moved to #1043