Open alilefta opened 2 days ago
I'm facing the same issue in a pnpm
project. I just added the typography plugin and it can't resolve it now.
I'm facing the same issue in a
pnpm
project. I just added the typography plugin and it can't resolve it now.
I think that pnpm also uses symlinks for dependencies and some of these dependencies cannot be accessed by their symlinks, you can check the pnpm docs, they call this feature hoisting.
In my case, I'm using the shamefully hoist option so that should match the behavior of npm of yarn
What version of VS Code are you using?
v1.95.2
What version of Tailwind CSS IntelliSense are you using?
v0.12.13
What version of Tailwind CSS are you using?
v3.4.14
What package manager are you using?
yarn
What operating system are you using?
Windows 10
Tailwind config
VS Code settings
Reproduction URL
None
Describe your issue
The problem happened when i have installed some of tailwindcss plugins like @tailwindcss/typography using yarn v4.5.1 or newer, it resulted in Tailwind CSS IntelliSense stopped working, when i jumped to Tailwind CSS IntelliSense's Output panel, it was complaining with Error: Can't resolve '@tailwindcss/typography' and IntelliSense not providing suggestions and autocomplete features.
Cause: When using yarn for installing dependencies, its newer feature pnp is not generating node_models directory by default, causing
plugins: [require("@tailwindcss/typography")
not working because bradlc.vscode-tailwindcss can't find the plugin.Solution: Switch to use node_modules instead of PnP and SDKs
And that is it.