-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add vite-specific oddity #342
base: main
Are you sure you want to change the base?
Conversation
|
Can you clarify your setup please? This really seems like an oddity of your own project. For instance, take our examples in this repo. They're pretty standard Vite projects and they don't contain a Furthermore, by default renaming the I'm more inclined to ask maybe what |
I actually did nothing more than run
when I ran only after I put the plugin section into the edit: {
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
]
} |
It likely won't if you use both The problem here is, On the other hand, I don't think we can point out and explain I suppose we can add a check for But I'd prefer to maybe find a solution with Let me know how that sounds ✌️ Maybe you can confirm that you initially added the |
Hm..I did not think of the differences in the created tsconfigs by Vite (insert relevant xkcd about standards here). Yes, the initial I agree that checking for referenced tsconfig files makes sense. The problem is not only So in my opinion, there are two different issues with Vite as a user:
Therefore there are two different solutions, with the first one being easier:
What do you think? What approach do you prefer? |
Just spent a couple hours pulling my hair out over intellisense not working in the |
Summary
First of all, thanks for this awesome tool!
This PR will add a small section to the installation docs: while installing this in a Vite project, I realized after some trial and error that it is also necessary to add the plugin to the
tsconfig.app.json
file, as you won't get type hints otherwise (yes, I have spent way too long to figure that out).Set of changes
Just small changes to the docs