Closed supachaidev closed 1 year ago
Do you have a sample repo?
Here is the reproduction repo—starting from the official Remix Cloudflare Workers template (only apps/routes/index.tsx
was edited).
pnpm install
.pnpm run dev
to see the error after visiting the web app in a browser.@supachaidev It is probably because of mismatched React versions. Your package.json file has React version pinned to 17.0.2 while remix-typedjson
depends on React 18.2.0.
Hmm.. React and Remix should technically be peer dependencies. Let me see if I can fix the package to make sure it works in all environments.
When I use
remix-typedjson
with Remix + Cloudflare Workers template, there is the following error: