stack icon indicating copy to clipboard operation
stack copied to clipboard

Support for React 19

Open phuctm97 opened this issue 7 months ago • 2 comments

I tried to install Stack Auth into a React Router project and got a lot of peer dependencies issue because Stack Auth is requiring React 18. Any plans for React 19 support soon?

phuctm97 avatar May 20 '25 15:05 phuctm97

Are you running into any issues using it with react 19? (I.e., even though the peer deps for stackauth are only up to react 18, do you run into any issues upgrading your project to 19 and forcing that react dep?)

esthor avatar May 26 '25 17:05 esthor

Any update on this? I get a compile warning when building my project but it seems to work...

 ⚠ Compiled with warnings in 3.0s
./node_modules/@stackframe/stack/dist/esm/lib/hooks.js
Attempted import error: 'useContext' is not exported from 'react' (imported as 'useContext').
Import trace for requested module:
./node_modules/@stackframe/stack/dist/esm/lib/hooks.js
./node_modules/@stackframe/stack/dist/esm/index.js
./stack.tsx

This is using NextJS 16 React 19.1.0 and stackframe/stack 2.8.25

msilis avatar Nov 04 '25 20:11 msilis