Closed Maniktherana closed 1 day ago
Update, on trying to remove twoslash the underlying issue is that I can't import css at all. I get a similar error when trying to import global.css
or my @repo/ui/globals.css
Could you use mjs
or mts
for tailwind css config to ensure it's not due to ESM compatibility issues?
just supported custom typography styles via theme.extends.typography
in Tailwind CSS config, it should fix the issue if you were using it to customise styles
Could you use
mjs
ormts
for tailwind css config to ensure it's not due to ESM compatibility issues?
Sorry about the late reply but I ended up removing my @repo/ui
components and that seemed to fix it. I'm still not sure what the root cause is
Glad it's fixed, feel free to provide a reproduction anytime so I can investigate further into the issue. Currently I believe Typography issues are fixed with the latest release, would close this for now.
To Reproduce
cd apps
pnpm create fumadocs-app
pnpm add fumadocs-twoslash
tsconfig.json
:next.config.mjs
:tailwind.config.ts
:Current vs. Expected behavior
what I'm seeing:
continued:
Provide environment information
Which area(s) are affected? (Select all that apply)
UI
Additional context
seems to be coming from here: https://github.com/fuma-nama/fumadocs/blob/f34e8956dad6017e0e6853dc23c130a564df95e3/packages/ui/src/theme/typography/index.ts#L175
I'm running this as an app in a turborepo environment