"useSubmit
must be used within a data router" for 3rd party libraries on node 22.12.0
#12475
Labels
useSubmit
must be used within a data router" for 3rd party libraries on node 22.12.0
#12475
I'm using React Router as a...
framework
Reproduction
This is the same issue as #12399 and #12401. It specifically breaks if you're using the latest version of Node 22 (22.12)
I can't use StackBlitz since it doesn't let me set the Node version, so here we go:
Use the latest node version
Note: If I use v22.9.0, I do not get this error 🙃
nvm use v22.12.0
setup a new template
npx create-react-router@latest -y
Add
remix-hook-form
npm i remix-hook-form
Call
useRemixForm
System Info
Used Package Manager
npm
Expected Behavior
It should work (see #12437 for initial fix)
Actual Behavior
It does not
The text was updated successfully, but these errors were encountered: