Next.js Discord

Discord Forum

tailwindcss is not detecting content in custom server + turbopack

Unanswered
European hornet posted this in #help-forum
Open in Discord
European hornetOP
each time that im compiling the project without turbopack works good, with turbopack im getting these warnings

sdk_app_1         |  â—‹ Compiling / ...
sdk_app_1         | 
sdk_app_1         | warn - The `content` option in your Tailwind CSS configuration is missing or empty.
sdk_app_1         | warn - Configure your content sources or your generated CSS will be missing styles.
sdk_app_1         | warn - https://tailwindcss.com/docs/content-configuration
sdk_app_1         |  ✓ Compiled / in 4.7s


how can i solve this ?

my tailwindcss.config.js
 content: [
    './src/**/*.html',
    './src/**/*.js',
    './public/**/*.html',
    './public/**/*.js',
    join(__dirname, 'src/services/ssr/root/**/*.{js,html}'),
    join(__dirname, 'node_modules/@plitzi/plitzi-ui-components/dist/**/!(*.stories|*.spec).{js,html}')
  ],

4 Replies

Holland Lop
Turbopack is in a pretty experimental stage. On a lot of configurations/machines it does not successfully finish compiling at all. I would personally not worry so much as this feature is already unstable. You could probably open an issue on github if you want to improve the development of turbopack
European hornetOP
oh ok makes sense, well in webpack works well for the moment
Holland Lop
ah, i’m so sorry haha, i mixed up my words at the end. i meant to say turbopack
European hornetOP
hehe all good