GithubHelp home page GithubHelp logo

Comments (13)

matthbe avatar matthbe commented on May 28, 2024 29

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.

gymcoding avatar gymcoding commented on May 28, 2024 6

@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.

ansidev avatar ansidev commented on May 28, 2024 4

@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.

hannoeru avatar hannoeru commented on May 28, 2024

スクリーンショット 2021-03-28 4 19 05

It works, can you provide more context?

from vite-plugin-pages.

mariusa avatar mariusa commented on May 28, 2024

Hi, the same repro.zip attached at #28

2021-03-28_12-42

If it works for you, then it's something missing in my vscode setup, right?

from vite-plugin-pages.

hannoeru avatar hannoeru commented on May 28, 2024

Can you try this setting from vitesse?

from vite-plugin-pages.

mariusa avatar mariusa commented on May 28, 2024

I did. I also tried the entire vitesse project and installed Volar extension too. Same warning, on these modules

2021-03-28_16-39

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.

mariusa avatar mariusa commented on May 28, 2024

That solved it, thanks!

from vite-plugin-pages.

jellykaiser avatar jellykaiser commented on May 28, 2024

That solved it, thanks!

how to solve this ?

from vite-plugin-pages.

hannoeru avatar hannoeru commented on May 28, 2024

@ansidev PR welcome, what you said depends on your tsconfig.json, if you included it, it should work.

from vite-plugin-pages.

ansidev avatar ansidev commented on May 28, 2024

@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.

abitwhy avatar abitwhy commented on May 28, 2024

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.

maietta avatar maietta commented on May 28, 2024

I was having the same issue. Turns out I was missing "vite-plugin-pages/client" in the types array in tsconfig.json.

That did not work for me! :(

from vite-plugin-pages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.