Closed hansoksendahl closed 1 year ago
Describe the bug When using the breadcrumb component with ssr: true there is an error related to i18n.
ssr: true
(0 , $1DoQa$intlmessageformat) is not a constructor
To Reproduce
git@github.com:hansoksendahl/minimum-repro-breadcrumbs-i18n-error.git
cd minimum-repro-breadcrumbs-i18n-error
pnpm run dev
Expected behavior A clear and concise description of what you expected to happen.
I would expect the breadcrumb component to render as expected.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context This only occurs in SSR mode. If you set SSR mode to false it works as expected.
Please note I already followed the instructions for SSR rendering with kobalte.
I found the fix. You have to add @internationalized/message to the ssr.noExternal array in vite.config.ts
@internationalized/message
ssr.noExternal
If it is not possible to fix this on kobalte's side, this should be added to the docs IMO.
Describe the bug When using the breadcrumb component with
ssr: true
there is an error related to i18n.To Reproduce
git@github.com:hansoksendahl/minimum-repro-breadcrumbs-i18n-error.git
cd minimum-repro-breadcrumbs-i18n-error
pnpm run dev
Expected behavior A clear and concise description of what you expected to happen.
I would expect the breadcrumb component to render as expected.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context This only occurs in SSR mode. If you set SSR mode to false it works as expected.
Please note I already followed the instructions for SSR rendering with kobalte.