Reference vite/client instead of react-scripts types
ProprietaryReplaces /// <reference types="react-scripts" /> in declaration files of Create React App packages, such as src/react-app-env.d.ts, with /// <reference types="vite/client" />.
org. openrewrite. react. cra-to-vite. update-react-app-env-typesmod run . --recipe= org. openrewrite. react. cra-to-vite. update-react-app-env-typesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.