Home > OS >  vite-plugin-pages got error Cannot find module '~pages' or its corresponding type declarat
vite-plugin-pages got error Cannot find module '~pages' or its corresponding type declarat

Time:10-07

I am creating my vue project with typescript via vite, and I use enter image description here

CodePudding user response:

Add /// <reference types="vite-plugin-pages/client" /> in env.d.ts

It's mentioned in README.

  • Related