[CSS] Incompatable @charset statements #11022
-
Hello, I'm having this error when trying to import some libs with supposed different charsets (and there is the typo in the message, "Incompatable"):
Screenshot: https://d.pr/i/vXmHxh The difference is in the quotes: How can I disable the charset check? My environment: vite.config.js import { defineConfig } from 'vite'
import laravel, { refreshPaths } from 'laravel-vite-plugin'
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: [...refreshPaths, 'app/Http/Livewire/**'],
}),
],
}) postcss.config.js module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The error is coming from |
Beta Was this translation helpful? Give feedback.
-
So what was the way around for this @sapphi-red ? I am working with |
Beta Was this translation helpful? Give feedback.
@charset 'UTF-8'
is not a valid syntax.https://developer.mozilla.org/en-US/docs/Web/CSS/@charset#valid_and_invalid_charset_declarations
The error is coming from
postcss-import
and I guess it cannot be disabled.