Hi,
I've just implemented your tailwind metronic template with React and Vite, and I'm facing these warnings (postcss issues) :
To reproduce, I launch "npm run dev" with default vite configuration and then, I access to the home page.
Can you help me please ?
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-link:hover .dark\:menu-link-hover\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-link:hover .dark\:menu-link-hover\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '[data-scrollspy-anchor].active .dark\:scrollspy-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '[data-scrollspy-anchor].active .dark\:scrollspy-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-link:hover .dark\:menu-link-hover\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-link:hover .dark\:menu-link-hover\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.active[data-scrollspy-anchor] .dark\:scrollspy-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.active[data-scrollspy-anchor] .dark\:scrollspy-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link.dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-link .dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label.dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-item.active > .menu-label .dark\:menu-item-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.menu-link:hover .dark\:menu-link-hover\:\!bg-coal-600:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.active[data-scrollspy-anchor] .dark\:scrollspy-active\:border-gray-100:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.active[data-scrollspy-anchor] .dark\:scrollspy-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
[vite:css] Complex selectors in '.active[data-scrollspy-anchor] .dark\:scrollspy-active\:bg-coal-300:is(.dark *)' can not be transformed to an equivalent selector without ':is()'.
(x2)
I got same warning issue when I tried to integrate Metronic 9 with Laravel + Inertia.
After some trial and error I realized that the warning came from /src/core/plugins/plugin.js
. This is because Metronic 9 is running postcss-preset-env
. It tries to transform this selector because the Metronic 9 configuration indicates that want to support older browser versions without native support for the :is() selector.
This stackoverflow post explain well:
from "postcss-is-pseudo-class" plugin: Complex selectors in '' can not be transformed to an equivalent selector without ':is()'
I have steps to resolve this:
1. Remove postcss-preset-env
from package.json
2. Remove plugins postcss-preset-env
from postcss.config.js
And the warning is gone.
Yes I used the latest Metronic 9 release with your React tutorial (Vite + React).
I followed this, step by step : https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/react
Everything works fine, except the above errors.
Hi,
Thank you for reaching out to us.
We reviewed the Metronic Vue example app and couldn't reproduce the errors you mentioned.
Have you made any modifications to our codebase?
Did this issue occur while using assets from the latest Metronic 9 release?
Regards,
Lauris Stepanovs,
Keenthemes Support Team