Comments (13)
I was having the same issue. Turns out I was missing "vite-plugin-pages/client"
in the types array in tsconfig.json
.
from vite-plugin-pages.
@ansidev
I solved it by adding the code below. thank you
// quasar.d.ts (or vite-env.d.ts)
/// <reference types="vite-plugin-pages/client" />
/// <reference types="vite-plugin-vue-layouts/client" />
from vite-plugin-pages.
@hannoeru The documentation is not clear.
// vite-env.d.ts
/// <reference types="vite-plugin-pages/client" />
By default, people will assume that the file vite-env.d.ts
is located at root project, but it must be located under folder src
. You must/should update the documentation to give exact file path for each new file.
from vite-plugin-pages.
It works, can you provide more context?
from vite-plugin-pages.
Hi, the same repro.zip attached at #28
If it works for you, then it's something missing in my vscode setup, right?
from vite-plugin-pages.
Can you try this setting from vitesse?
from vite-plugin-pages.
I did. I also tried the entire vitesse project and installed Volar extension too. Same warning, on these modules
Appreciate your help on this. I don't want to waste your time, it's a minor issue. Closing, thanks for confirming it works for you.
from vite-plugin-pages.
That solved it, thanks!
from vite-plugin-pages.
That solved it, thanks!
how to solve this ?
from vite-plugin-pages.
@ansidev PR welcome, what you said depends on your tsconfig.json
, if you included it, it should work.
from vite-plugin-pages.
@ansidev PR welcome, what you said depends on your
tsconfig.json
, if you included it, it should work.
@hannoeru I didn't said. It's simple, so I think you can do it!
from vite-plugin-pages.
That solved it, thanks!
how to solve this ?
@jellykaiser
You can refer to vite client-types.
If you're free, just look at theses terms: reference types, compilerOptions.types.
from vite-plugin-pages.
I was having the same issue. Turns out I was missing
"vite-plugin-pages/client"
in the types array intsconfig.json
.
That did not work for me! :(
from vite-plugin-pages.
Related Issues (20)
- [Question] - How to define title, meta, middlewares for React? HOT 1
- Route with params/props (Not in URL) HOT 1
- Routes with extensions are not supported. HOT 1
- [Question] Is it possible to differentiate links to prevent all getting router-link-active by expanded parameter's?
- Only index file under pages folder accessible in deployed app
- exclude not work when file change HOT 2
- TSX/JSX consider support to define meta by jsdoc with import types
- How to add meta in route HOT 11
- catch all route not catch index route HOT 1
- Vulnerability : Update yaml to 2.2.2
- Add dynamic meta to dynamic routes HOT 1
- The field name "filePattern" in the config contains a spelling error. HOT 1
- Dynamic routing + dynamic tab + sub route
- [Feature] Typescript support for route path and route path params(Auto complete) HOT 1
- doesn't React support the feature [SFC custom block for Route Data ]?
- Vite5.0 support HOT 3
- Support for v0.10 @solidjs/router ?
- path: '*'
- keepAlive cache invalidation
- Reduce the large bundle size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-pages.