Closed C0ZEN closed 1 year ago
@C0ZEN you can check examples folder, there is an example for react. Try adding src/vite-env.d.ts
to your project using refs https://github.com/vite-pwa/vite-plugin-pwa/blob/main/examples/react-router/src/vite-env.d.ts
@C0ZEN you can check examples folder, there is an example for react. Try adding
src/vite-env.d.ts
to your project using refs https://github.com/vite-pwa/vite-plugin-pwa/blob/main/examples/react-router/src/vite-env.d.ts
I used this syntax to solve the issue because I tend to avoid the triple slash references:
import 'vite-plugin-pwa/react';
import 'vite-plugin-pwa/info';
Thank you.
I followed the React type declarations docs. Since migrating to Nx 16.4.0 (which adds type check to vite builder), I have the following error while building my app:
With a config as simple as: