Replies: 1 comment
-
@Battosuai I ran into this too and solved it, figured I'd share. TLDR; Add import { fontFamily } from "tailwindcss/defaultTheme.js"; This is necessary because:
You can give the ESM loader a nudge and tell it you're looking for a specific file relative to the root of the package by adding the note: This won't be an issue in tailwindcss 4 because package.json defines an export map. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Created a monorepo from doc.
In tailwind config of
ui
packagetailwindcss/defaultTheme
shows error.Cannot find module 'tailwindcss/defaultTheme' or its corresponding type declarations
Image
What should I do to fix this?
Beta Was this translation helpful? Give feedback.
All reactions