Closed anburocky3 closed 1 year ago
I'm using Laravel + InertiaJS with typescript.
As per the documentation, i did the following.
yarn add vite-plugin-pwa -D
vite.config.ts
import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ plugins: [ VitePWA({ registerType: 'autoUpdate', devOptions: { enabled: true } }) ] })
Added the types in my tsconfig.json
tsconfig.json
{ "compilerOptions": { "types": [ "vite/client", "node", "unplugin-icons/types/vue", "vite-plugin-pwa/client", "googlemaps" ], } }
But still have this error in my PhpStorm IDE.
I restarted my system and now the error is gone. Thank you.
I'm using Laravel + InertiaJS with typescript.
As per the documentation, i did the following.
yarn add vite-plugin-pwa -D
vite.config.ts
file and added the following code>Added the types in my
tsconfig.json
But still have this error in my PhpStorm IDE.