Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vgaldikas's avatar

Generated CSS is laiden with errors when using vite+boostrap

Hello,

So i have laravel project with vite+bootstrap. And after I run npm run build the generated CSS file is full of errors.

For example this:

Cannot resolve '--bs-body-text-align' custom property

When I search through the whole project (including vendor) for --bs-body-text-align it's nowhere to be found, but somehow a variable like this ends up in the generated CSS. Where does it come from? How do I get rid of it?

In general the project works by the way, the only problem is the annoying red highlighting in PHPstorm dir structure.

Thanks!

0 likes
0 replies

Please or to participate in this conversation.