Skip to content
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

issue with v4 and yarn pnp #1090

Open
not-ivy opened this issue Nov 14, 2024 · 0 comments
Open

issue with v4 and yarn pnp #1090

not-ivy opened this issue Nov 14, 2024 · 0 comments

Comments

@not-ivy
Copy link

not-ivy commented Nov 14, 2024

vscode version: 1.96.0-insider
intellisense version: [email protected]
tailwindcss version: [email protected]
package manager: yarn with pnp
operating system: arch linux

Tailwind config

/* index.css */
@import "tailwindcss"

VS Code settings

{
  "search.exclude": {
    "**/.yarn": true,
    "**/.pnp.*": true
  },
  "eslint.nodePath": ".yarn/sdks",
  "typescript.tsdk": ".yarn/sdks/typescript/lib",
  "typescript.enablePromptUseWorkspaceTsdk": true,
  "tailwindCSS.experimental.configFile": "./src/index.css"
}

Describe your issue

intellisense not working; this is the error in the console:

[Error - 1:16:34 PM] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/nora/.yarn/berry/cache/tailwindcss-npm-4.0.0-alpha.33-a5a3ff8b6e-10c0.zip/node_modules/tailwindcss/dist/lib.js' imported from /home/nora/.vscodium-insiders/extensions/bradlc.vscode-tailwindcss-0.13.54/dist/tailwindServer.js
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:940:10)
    at defaultResolve (node:internal/modules/esm/resolve:1176:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:510:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
    at ModuleLoader.import (node:internal/modules/esm/loader:472:34)
    at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:227:31)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:249:12)
    at I (/home/nora/.vscodium-insiders/extensions/bradlc.vscode-tailwindcss-0.13.54/dist/tailwindServer.js:1760:11365) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///home/nora/.yarn/berry/cache/tailwindcss-npm-4.0.0-alpha.33-a5a3ff8b6e-10c0.zip/node_modules/tailwindcss/dist/lib.js'
}
[src/index.css] Failed to load workspace modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant