which is Property 'inertia' does not exist on type 'HttpContext'., among other errors, while the react-project side builds smoothly. Would you happen to know how to fix this?
Turns out there are differences also in the middlewares and routes. So a safer way should be to modify the setting in react-project to keep the Inertia configurations.
According to AdonisJS's guide I started with
Then I added the preact parts:
Then I copied
react-project/inertia
with topreact-project/inertia
and made the following changesand
which should do the trick (I omit the diff from
vite.config.ts
for now).But I got a build (
node ace build
) error from the following lines in the generatedpreact-project/app/exceptions/handler.ts
which is
Property 'inertia' does not exist on type 'HttpContext'.
, among other errors, while thereact-project
side builds smoothly. Would you happen to know how to fix this?