-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of HonoX are you using?
0.1.23
What steps can reproduce the bug?
- select x-basic template
- transition app from
hono/jsxto@hono/react-renderer - install valtio:
npm i valtio - replace counter island do with valtio counter:
import { proxy, useSnapshot } from "valtio";
const state = proxy({ count: 0 });
export default function Counter() {
const snap = useSnapshot(state);
return (
<div>
<p>{snap.count}</p>
<button onClick={() => ++state.count}>Increment</button>
</div>
);
}npm run dev
What is the expected behavior?
a basic incremental counter demo rendering and working
What do you see instead?
module is not defined
at eval (/.../node_modules/use-sync-external-store/shim/index.js:8:3)
at instantiateModule (file:///.../node_modules/vite/dist/node/chunks/dep-D8YhmIY-.js:53453:11
[vite] Error when evaluating SSR module /node_modules/use-sync-external-store/shim/index.js:
|- ReferenceError: module is not defined
Additional information
valtio: https://valtio.pmnd.rs
valtio-signal seems to be working, jotai test counter also works
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working