You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an island component is called from a component imported via an alias defined by vite-tsconfig-paths, the child elements of the HasIslands component never render.
Create an x-basic project: npm create hono@latest
Install vite-tsconfig-paths: npm i -D vite-tsconfig-paths
What version of HonoX are you using?
0.1.23
What steps can reproduce the bug?
When an island component is called from a component imported via an alias defined by vite-tsconfig-paths, the child elements of the
HasIslands
component never render.npm create hono@latest
vite-tsconfig-paths
:npm i -D vite-tsconfig-paths
compilerOptions.paths
intsconfig.json
:vite-tsconfig-paths
plugin tovite.config.ts
:app/SomeComponent.tsx
:app/index.tsx
to render SomeComponent:app/routes/_renderer.tsx
:What is the expected behavior?
When an island component is used, the child elements of the
HasIslands
component are rendered.What do you see instead?
It can be avoided by defining resolve.alias in the vite.config.ts file instead.
Additional information
This means that the
honox/server
Script
component, as well as this issue, will not work properly with the island component in production builds.The text was updated successfully, but these errors were encountered: