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
There is a problem with shadow roots + borders in tailwind v4, so that is pretty prominent for web extensions and content script UIs. But it didn't effect that extension
There is a problem with shadow roots + borders in tailwind v4, so that is pretty prominent for web extensions and content script UIs. But it didn't effect that extension
importtailwindcssfrom"@tailwindcss/vite";import{defineConfig}from"wxt";// See https://wxt.dev/api/config.htmlexportdefaultdefineConfig({srcDir: "src",modules: ["@wxt-dev/module-react"],vite: ()=>({plugins: [tailwindcss()],}),});
This vite plugin works for me, but it has the type error:
Type'() => { plugins: Plugin<any>[][]; }'isnotassignabletotype'(env: ConfigEnv) => WxtViteConfig | Promise<WxtViteConfig>'.Type'{ plugins: Plugin<any>[][]; }'isnotassignabletotype'WxtViteConfig | Promise<WxtViteConfig>'.Type'{ plugins: Plugin<any>[][]; }'isnotassignabletotype'WxtViteConfig'.Typesofproperty'plugins'areincompatible.Type'Plugin<any>[][]'isnotassignabletotype'PluginOption[]'.Type'Plugin<any>[]'isnotassignabletotype'PluginOption'.Type'Plugin<any>[]'isnotassignabletotype'PluginOption[]'.Type 'Plugin<any>' is not assignable to type 'PluginOption'.
Apart from using tailwindcss() as any, any other clues this?
import { defineConfig, type WxtViteConfig } from 'wxt';
import tailwindcss from "@tailwindcss/vite";
// See https://wxt.dev/api/config.html
export default defineConfig({
modules: ['@wxt-dev/module-react'],
vite: () => ({
plugins: [tailwindcss()],
} as WxtViteConfig),
});
Reacted by Remus, Volodymyr, Marius Bosler, lvwzhen, Victor Phos, Abdul Basit Rana, Muhamad Visat, Waffen Sultan, Aliaksandr Zhukau, Reda Al Sulais and 6 more
Activity
skube commentedon Feb 26, 2025
I could be wrong, but I don't think WXT is compatible with Tailwind v4 yet.
It does work if you follow the v3 instructions though.
https://v3.tailwindcss.com/docs/installation/using-postcss
aklinker1 commentedon Feb 26, 2025
Worked just fine for me using the vite plugin:
aklinker1/github-better-line-counts#42
There is a problem with shadow roots + borders in tailwind v4, so that is pretty prominent for web extensions and content script UIs. But it didn't effect that extension
nishu-murmu commentedon Feb 27, 2025
I'm getting this error after upgrading.
Am I missing something?
This is working.
Basically
npm install tailwindcss @tailwindcss/postcss postcsscommand was still installing 3.4.17 version in the docs.This looks like tailwindcss issue.
aklinker1 commentedon Feb 27, 2025
Hmm, never seen that error before. Not sure 🤷
Also, I should mention #1461 here as well
mengxi-ream commentedon Apr 17, 2025
This vite plugin works for me, but it has the type error:
Apart from using
tailwindcss() as any, any other clues this?aklinker1 commentedon Apr 24, 2025
You have two versions of Vite installed and their types are conflicting.
huangyangteng commentedon Apr 30, 2025
first:
pnpm add tailwindcss @tailwindcss/vite
then:
update wxt.config.ts