Thanks but that link works with Mix (not Vite).
This link [1] also doesn't work | npm errors
I'll keep Jetstream inertia-vue as is, and I'll install Inertia-React on top of it.
Inertia server is the same , I just need to install the client-side for Inertia-React (in Docker).
Not sure why they made it so complicated to install Jetstream-React though..
npm install @inertiajs/react
The problem is that the npm above generates quite a few Errors (below) , which I turned to Warnings by adding the flag --force at the end.
I'll check how far this'll go..
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @inertiajs/[email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error peer react@"^19.0.0" from [email protected]
npm error node_modules/react-dom
npm error react-dom@"^19.0.0" from the root project
npm error react@"^19.0.0" from the root project
npm error 1 more (@inertiajs/react)
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.9.0 || ^17.0.0 || ^18.0.0" from @inertiajs/[email protected]
npm error node_modules/@inertiajs/inertia-react
npm error @inertiajs/inertia-react@"^0.8.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@"^16.9.0 || ^17.0.0 || ^18.0.0" from @inertiajs/[email protected]
npm error node_modules/@inertiajs/inertia-react
npm error @inertiajs/inertia-react@"^0.8.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/sail/.npm/_logs/2024-12-30T18_57_22_939Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/sail/.npm/_logs/2024-12-30T18_57_22_939Z-debug-0.log
[1] https://github.com/ozziexsh/laravel-jetstream-react
https://inertiajs.com/client-side-setup