"php artisan breeze:install react" Starter kit does not work
I am following the instructions for the following starter kit using the "react" option with Laravel 9.x.
https://laravel.com/docs/9.x/starter-kits#breeze-and-inertia
When I "npm run dev", I get the following error.
Mix
Compiled with some errors in 1.05s
ERROR in ./resources/js/app.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\cg\work\laravel\timesheet1\resources\js\app.jsx: Support for the experimental syntax 'jsx' isn't currently enabled (16:21):
After, I Add @babel/preset-react then I just keep getting errors of various things. Is there a react breeze install that works? Or how do I make the starter kit work?
The error message suggests that the JSX syntax is not enabled. To fix this, you need to install the necessary dependencies and configure your project to use them. Here are the steps you can follow: