You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Tailwind v4 using npx @tailwindcss/upgrade@next, the Plasmo build fails with the following error:
🔴 ERROR | Build failed. To debug, run plasmo dev --verbose.
🔴 ERROR | Could not resolve module "node:module" from "/Users/guilhermomasid/Documents/trash/plasmo-tailwind/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/jiti.cjs"
Steps to Reproduce
Create a new Plasmo extension with TailwindCSS using:
The main branch contains the unmodified Plasmo Tailwind example.
The feat/tailwind-v4 branch contains the project after the Tailwind v4 upgrade.
A pull request comparing the changes is available here: PR #1.
Expected Behavior
The project should build successfully after upgrading to Tailwind v4.
Actual Behavior
The build fails with a module resolution error related to [email protected].
Environment
TailwindCSS v4
Jiti v2.4.2
Node.js version: v22.13.1
Package manager: pnpm
Additional Notes
This issue seems related to [email protected] 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
p dev
>[email protected] dev /Users/guilhermomasid/Documents/trash/plasmo-tailwind
> plasmo dev
🟣 Plasmo v0.90.2
🔴 The Browser Extension Framework
🔵 INFO | Starting the extension development server...
🔵 INFO | Building for target: chrome-mv3
🔵 INFO | Loaded environment variables from: []
(node:59554) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
🔴 ERROR | Build failed. To debug, run plasmo dev --verbose.
🔴 ERROR | Could not resolve module "node:module" from "/Users/guilhermomasid/Documents/trash/plasmo-tailwind/node\_modules/.pnpm/[email protected]/node\_modules/jiti/lib/jiti.cjs"
+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.
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 [email protected].
Environment
Additional Notes
This issue seems related to [email protected] 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: