Two errors in VS Code with Laravel 12 Vue starter kit
I'm still learning a lot about Laravel, and looking into the new starter kits. This is on a clean install of the Vue starter kit.
The first error is in the tsconfig.json. VS Code highlights the opening brace at the top of the file.
Cannot find type definition file for './resources/js/types'.
The file is in the program because:
Entry point of type library './resources/js/types' specified in compilerOptions
Second error is in resources/js/app.ts. Highligted error is on the line declare module 'vite/client'
File '/Users/myname/Sites/laravel/node_modules/vite/client.d.ts' is not a module.
Anyone else getting these on a clean install? It appears to run fine in the browser.
I'm also facing the same issue, did you found any solution to this ? @nemesis256
Also all of my inputs are now throwing type error when im just using useForm from inertia and v-model
Type 'string | number' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.ts-plugin(2322)