Making VSCode + TS + Yarn PnP + Vue SFC intellisense work? #6178
Unanswered
auirarrazaval
asked this question in
Q&A
Replies: 1 comment
-
did you ever find a solution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So the issue is the following:
I am trying to migrate a project from yarn 1 to yarn 4. I would say I'm almost there. This is a Vue 3 project, that uses Single File Components (SFC).
I did the yarn version upgrade (with all recommended steps), installed the editor SDKs (it installed typescript and eslint sdks) and set the Typescript Server to use the workspace version.
✅ VSCode's TS server works with no issues for ts files as it is detecting PnP packages installed with yarn
✅ I can run the server with no problems, (yarn run vite). The SFCs seem to compile with no isses.
![image](https://private-user-images.githubusercontent.com/31079536/314914994-98e68b17-1d1c-4933-b37b-aa02bd7bcf58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NzE1MjMsIm5iZiI6MTcyMDU3MTIyMywicGF0aCI6Ii8zMTA3OTUzNi8zMTQ5MTQ5OTQtOThlNjhiMTctMWQxYy00OTMzLWIzN2ItYWEwMmJkN2JjZjU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDAwMjcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBhNDY3NTdkYTIxMjVhYTVjMTNmMmQ0MGE4YjYwZDk5YzY1NTFjZjk1ZDYwNjRlMjYyZTQwZWQwYWRhNDRjNmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ORPkP3pIW4LMSvuTrg9dKm_TGmjGtKTMIDwqYxOAe28)
❎ However, in my SFCs the typescript server or intellisense just dont't seem to work as expected, as installed packages are not recognized.
For now I think i'll just turn off the pnp mode, but I would like to make sure that this is not currently supported before doing so? Or am I missing a configuration? Or am I just completely lost here? 😅
Any help or insight is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions