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
VSCode extension does not work when using yarn PnP #3566
Comments
This should relate to Yarn PNP, I see TailwindCSS extension will try to load the |
I have not reproduced this problem in the latest version. Please provide a more detailed reproduction demo. |
The issue is with the use of Yarn PnP specifically. When using PnP, all packages are zipped and made available on demand within the runtime, so there is no Other plugins integrate with the concept of Editor SDKs to get the dynamic dependency loading features, but the UnoCSS extension seems to load the Stacktrace from the VS Code log:
|
does your project empty spaces in the path? it seems you're using Windows, bad combination using spaces or accents in the path. |
While, yes, the example above did have spaces in the path, the same issue with the exact same tracelog appears when running in a directory without spaces, or even when running on macOS. |
Tested, have same issue. No special characters in path. MacOS 14.3.1 |
This is probably caused by not using the proper PnP Editor SDK: https://yarnpkg.com/getting-started/editor-sdks. Installing this will let VS Code resolve the PnP dependencies, instead of looking in |
UnoCSS version
0.58
Describe the bug
VSCode extension is not working when install unocss with yarn, the UnoCSS console output:
Reproduction
yarn create vite vite-project --template vanilla cd vite-project yarn add unocss
add a basic unocss config
open the project in VSCode
System Info
No response
Validations
The text was updated successfully, but these errors were encountered: