Custom theme problem for tailwind v4 (Failed to find 'tailwindcss/base')

laravel 12, filament 3.3 So I was trying to change filament them and followed the doc for reference but it's showing this error
R:\1_Dev_G\php_laravel\laravel-livewire\ASM git:[dev]
npx tailwindcss@3 --input ./resources/css/filament/shop/theme.css --output ./public/css/filament/shop/theme.css --config ./resources/css/filament/shop/tailwind.config.js --minify
Need to install the following packages:
Ok to proceed? (y) y

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Error: Failed to find 'tailwindcss/base'
in [
R:\1_Dev_G\php_laravel\laravel-livewire\ASM\vendor\filament\filament\resources\css
]
at C:\Users\RNB\AppData\Local\npm-cache\_npx\20926d80ef4f8eb9\node_modules\postcss-import\lib\resolve-id.js:35:13
at async Promise.all (index 0)
at async Promise.all (index 0)
at async LazyResult.runAsync (C:\Users\RNB\AppData\Local\npm-cache\_npx\20926d80ef4f8eb9\node_modules\postcss\lib\lazy-result.js:293:11)
at async build (C:\Users\RNB\AppData\Local\npm-cache\_npx\20926d80ef4f8eb9\node_modules\tailwindcss\lib\cli\build\index.js:49:9)
R:\1_Dev_G\php_laravel\laravel-livewire\ASM git:[dev]
npx tailwindcss@3 --input ./resources/css/filament/shop/theme.css --output ./public/css/filament/shop/theme.css --config ./resources/css/filament/shop/tailwind.config.js --minify
Need to install the following packages:
Ok to proceed? (y) y

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Error: Failed to find 'tailwindcss/base'
in [
R:\1_Dev_G\php_laravel\laravel-livewire\ASM\vendor\filament\filament\resources\css
]
at C:\Users\RNB\AppData\Local\npm-cache\_npx\20926d80ef4f8eb9\node_modules\postcss-import\lib\resolve-id.js:35:13
at async Promise.all (index 0)
at async Promise.all (index 0)
at async LazyResult.runAsync (C:\Users\RNB\AppData\Local\npm-cache\_npx\20926d80ef4f8eb9\node_modules\postcss\lib\lazy-result.js:293:11)
at async build (C:\Users\RNB\AppData\Local\npm-cache\_npx\20926d80ef4f8eb9\node_modules\tailwindcss\lib\cli\build\index.js:49:9)
also I have run npx update-browserslist-db@latest this command but still its missing tailwindcss/base In this case what should I do.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?