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
So i initialized a turborepo with next app.
followed this guide to add tailwind to my next-app in /apps. https://tailwindcss.com/docs/installation/framework-guides/nextjs
now when i do styling directly inside the page.tsx it works fine. but when i add components inside theui/srcfolder and import it to page.tsx the text and everything shows but the style inside the className"" doesnt shows up
Additional information
thisismypostcss.config.mjs`constconfig= {plugins: {"@tailwindcss/postcss": {}, },};export default config;`importedtailwindinglobals.cssaswell`@import"tailwindcss";`thisisthecomponentinsidetheui/srcfolderAppbar.tsx
'import { Button } from "./button";
interfaceAppbarProps{user?: {name?: string|null;},// TODO: can u figure out what the type should be here?onSignin: ()=>void,// mean i my type will take function and its doesnt care what it returnsonSignout:()=>void}exportconstAppbar=({
user,
onSignin,
onSignout
}: AppbarProps)=>{return<divclassName="flex justify-between border-b px-4"><divclassName="text-lg flex flex-col justify-center">
PayZoo
</div><divclassName="flex flex-col justify-center pt-2"><ButtononClick={user ? onSignout : onSignin}>{user ? "Logout" : "Login"}</Button></div></div>}'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
So i initialized a turborepo with next app.
followed this guide to add tailwind to my next-app in /apps. https://tailwindcss.com/docs/installation/framework-guides/nextjs
now when i do styling directly inside the
page.tsx
it works fine. but when i add components inside theui/src
folder and import it to page.tsx the text and everything shows but the style inside theclassName""
doesnt shows upAdditional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions