-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
[BUG] Error: Could not resolve module "node:module" in jiti after upgrading to Tailwind v4 in Plasmo #1188
Comments
+1 on this, got a monorepo setup with 4 apps using the same shared design system with tailwind v4, have to make the PR wait until this gets resolved otherwise our extension will break. |
Same here ✋ |
Probably related to parcel-bundler/parcel#9244. The issue has been fixed in newer parcel versions it seems so we should get forward with updating to a newer parcel version |
Has anyone been able to solve the problem? |
1 similar comment
Has anyone been able to solve the problem? |
Fixed this issue by downgrading these packages to the following versions: "dependencies": {
"plasmo": "0.90.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwind-merge": "2.5.5",
"tailwindcss-animate": "1.0.7"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "4.1.1",
"@types/chrome": "0.0.258",
"@types/node": "20.11.5",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"autoprefixer": "10.4.20",
"postcss": "8.4.49",
"prettier": "3.2.4",
"tailwindcss": "3.4.17",
"typescript": "5.3.3"
}, Also created export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
} And created @tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 100%;
}
.dark {
--background: 0 0% 4%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply antialiased bg-background text-foreground;
font-family: var(--font-geist-sans);
}
} |
@ctrhub The issue here is specifically related to upgrading Tailwind to version 4. The code you provided is using Tailwind version 3, which currently works fine with Plasmo. |
Description
After upgrading to Tailwind v4 using
npx @tailwindcss/upgrade@next
, the Plasmo build fails with the following error:Steps to Reproduce
Repository
I have created a repository to reproduce the issue: plasmo-tailwind-v4-bug
main
branch contains the unmodified Plasmo Tailwind example.feat/tailwind-v4
branch contains the project after the Tailwind v4 upgrade.Expected Behavior
The project should build successfully after upgrading to Tailwind v4.
Actual Behavior
The build fails with a module resolution error related to jiti@2.4.2.
Environment
Additional Notes
This issue seems related to jiti@2.4.2 and its inability to resolve the node:module package. Any insights or workarounds would be greatly appreciated.
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: