tailwindcss related warning when running npm install

Hello. I am updating the packages in my template and for some reason whenever i run
npm install
npm install
i get this warning:
> postinstall
> nuxt prepare


[nuxt:tailwindcss 6:21:40 PM] WARN You have provided functional plugins in tailwindcss.config in your Nuxt configuration that cannot be serialized for Tailwind Config. Please use tailwind.config or a separate file (specifying in tailwindcss.configPath) to enable it with additional support for IntelliSense and HMR.

ℹ Using default Tailwind CSS file nuxt:tailwindcss 6:21:40 PM
✔ Types generated in .nuxt 6:21:41 PM

added 1582 packages, and audited 1584 packages in 12s
> postinstall
> nuxt prepare


[nuxt:tailwindcss 6:21:40 PM] WARN You have provided functional plugins in tailwindcss.config in your Nuxt configuration that cannot be serialized for Tailwind Config. Please use tailwind.config or a separate file (specifying in tailwindcss.configPath) to enable it with additional support for IntelliSense and HMR.

ℹ Using default Tailwind CSS file nuxt:tailwindcss 6:21:40 PM
✔ Types generated in .nuxt 6:21:41 PM

added 1582 packages, and audited 1584 packages in 12s
although i have indeed done that in my nuxt.config.ts file:
export default defineNuxtConfig({
devtools: { enabled: true },
css: ["@/assets/css/main.css"],
tailwindcss: {
configPath: "tailwind.config.ts",
},
export default defineNuxtConfig({
devtools: { enabled: true },
css: ["@/assets/css/main.css"],
tailwindcss: {
configPath: "tailwind.config.ts",
},
and this is the tailwind.config.ts file:
/** @type {import('tailwindcss').Config} */

import defaultTheme from "tailwindcss/defaultTheme"; // https://tailwindcss.com/docs/theme#referencing-the-default-theme

export default {
content: [
"./components/**/*.{js,vue,ts}",
"./pages/**/*.{js, vue, ts}",
"./layouts/**/*.{js, vue,ts}",
"./plugins/**/*.{js,vue,ts}",
"./nuxt.config.{js,ts}",
"./app.vue",
],
theme: {
extend: {
// anything under extend extends the default Theme
font: {
// if for any reason you would like to reference the defaultTheme require the theme and spread it as shown below
sans: ['"Inter Var"', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};
/** @type {import('tailwindcss').Config} */

import defaultTheme from "tailwindcss/defaultTheme"; // https://tailwindcss.com/docs/theme#referencing-the-default-theme

export default {
content: [
"./components/**/*.{js,vue,ts}",
"./pages/**/*.{js, vue, ts}",
"./layouts/**/*.{js, vue,ts}",
"./plugins/**/*.{js,vue,ts}",
"./nuxt.config.{js,ts}",
"./app.vue",
],
theme: {
extend: {
// anything under extend extends the default Theme
font: {
// if for any reason you would like to reference the defaultTheme require the theme and spread it as shown below
sans: ['"Inter Var"', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};
what am i missing here? can't seem to figure it out
2 Replies
Roland Tannous
Roland TannousOP8mo ago
GitHub
You have provided functional plugins in tailwindcss.config in your ...
Environment Operating System: Darwin Node Version: v21.7.3 Nuxt Version: 3.11.2 CLI Version: 3.11.1 Nitro Version: 2.9.6 Package Manager: [email protected] Builder: - User Config: css, app, modules, col...
LazyDali
LazyDali8mo ago
I usually use this module and it’s hassle free. No to very little config required : https://nuxt.com/modules/tailwindcss
Nuxt
Tailwindcss · Nuxt Modules
Add Tailwind CSS to your Nuxt application in seconds with PurgeCSS included for minimal CSS.
Want results from more Discord servers?
Add your server