Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing in docs to say @viteReactRefresh and converting app.js to app.jsx #661

Open
CushtyDev opened this issue Sep 19, 2024 · 1 comment

Comments

@CushtyDev
Copy link

Hi i just spent 6 hours trying to work out why Inertia was not working, and I luckily found a youtube video that says:

@viteReactRefresh and converting app.js to app.jsx. I checked the docs but there is no mention of it, and a few people commented on the video saying the same thing, is it in the docs somewhere? Thanks

@wizzymore
Copy link

wizzymore commented Nov 12, 2024

The docs are providing a generic example of how to include inertia in your app.

If you use vite with react, you need to follow laravel's official instructions for how to include react in your application with proper HMR:
https://laravel.com/docs/11.x/vite#react

The template provided in the docs is to show where to include @inertia and @inertiaHead in your template, not how to include your assets correctly in the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants