TerrePorter started a new conversation+100 XP
4mos ago
The packages are underline in red and give an error:
Vue: Cannot find module @tailwindcss/vite or its corresponding type declarations.
There are types at 'c:/local_devel/Code/_play/rcvue.lan/node_modules/@tailwindcss/vite/dist/index.d.mts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
Vue: Cannot find module @vitejs/plugin-vue or its corresponding type declarations.
There are types at 'c:/local_devel/Code/_play/rcvue.lan/node_modules/@vitejs/plugin-vue/dist/index.d.mts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
The moduleResolution is already bundler.
This doesnt seem to be breaking the page load so I'm not sure if it is just something with PhpStorm.
My vite config file below
Thanks
import { wayfinder } from '@laravel/vite-plugin-wayfinder';
import tailwindcss from '@tailwindcss/vite';
import vue from '@vitejs/plugin-vue';
import laravel from 'laravel-vite-plugin';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
laravel({
input: ['resources/js/app.ts'],
ssr: 'resources/js/ssr.ts',
refresh: true,
}),
tailwindcss(),
wayfinder({
formVariants: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
server : {
cors: true,
host: "192.168.10.10",
watch: {
usePolling: true,
},
}
});