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
I'm trying to replace all require statements with import, per my linter rules. First thing I did was change package/config/tailwind.config.js to tailwind.config.ts. Likewise in my application, I also changed to tailwind.config.ts. I then changed postcss.config.cjs to postcss.config.cts in the application and am using import statements. However, when I run the app, the styles are no longer applied. There's an error in the console saying that the tailwind content is empty, so it appears the configs are not being imported properly. Below are examples of each file.
Through googling, I've seen mention of using modules like postcss-config-loader, however, I could not get it to work. I'm not using a webpack config file or anything either. Any help would be appreciated.
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.
-
I'm trying to replace all
requirestatements withimport, per my linter rules. First thing I did was changepackage/config/tailwind.config.jstotailwind.config.ts. Likewise in my application, I also changed totailwind.config.ts. I then changedpostcss.config.cjstopostcss.config.ctsin the application and am usingimportstatements. However, when I run the app, the styles are no longer applied. There's an error in the console saying that the tailwindcontentis empty, so it appears the configs are not being imported properly. Below are examples of each file.package/config/tailwind.config.ts
apps/client/tailwind.config.ts
app/client/postcss.config.cts
Through googling, I've seen mention of using modules like
postcss-config-loader, however, I could not get it to work. I'm not using a webpack config file or anything either. Any help would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions