Error: missing '}' #2915
-
Hello, it may be a rookie mistake but I'm having a problem using Here my app.scss:
(note: Here is my _admin_layout.scss content:
Here is my tailwind.config.js file:
Here is my webpack.mix.js:
And here is my webpack.config.js:
When running
What did I do wrong? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Try wrapping your apply in an @ layer, ie:
Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello! I am pretty sure this is because you're trying to have - @tailwind base;
+ @import "tailwindcss/base";
- @tailwind components;
+ @import "tailwindcss/components";
- @tailwind utilities;
+ @import "tailwindcss/utilities"; You'll also want to make sure you're using the You should definitely not have to do the
What do you mean by that? It sounds like if it'snot working if you're trying to import Tailwind's minified CSS after that. |
Beta Was this translation helpful? Give feedback.
Hello!
I am pretty sure this is because you're trying to have
@import
statements after your Tailwind directives. Perhaps you should try change your directives to this:You'll also want to make sure you're using the
postcss-import
PostCSS plugin.You should definitely not have to do the
@import "~tailwindcss/dist/tailwind.min.css"
line after your three@taliwind
directives.What do you mean by that? It sounds like if it'snot working if you're tryin…