when I run yarn dev I get the following error
ā Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
SyntaxError
(155:7) ./resources/styles/partials/_base.scss @apply is not supported within nested at-rules like @include. You can fix this by un-nesting @include.
153 | @apply flex flex-col w-full p-8;
154 | @include respond(md) {
> 155 | @apply flex-row p-0;
| ^
156 | }
Also, I am using SCSS instead of CSS and updated the default resources/styles/app.css as below
@import "lib/_mixins.scss";
@import 'tailwindcss/base';
@import "partials/_base.scss";
@import "partials/_form_fields.scss";
@import "partials/_buttons.scss";
@import "partials/_animations.scss";
@import 'tailwindcss/components';
@import "partials/_components.scss";
@import 'tailwindcss/utilities';
My package.json file
"devDependencies": {
"@roots/bud": "^5.0.0",
"@roots/sage": "^5.0.0",
"@wordpress/browserslist-config": "4.1.0",
"autoprefixer": "^10.4.1",
"babel-eslint": "^10.1.0",
"eslint": "8.6.0",
"postcss": "8.4.5",
"postcss-import": "14.0.2",
"postcss-nested": "5.0.6",
"postcss-preset-env": "7.1.0",
"postcss-scss": "^4.0.2",
"prettier": "2.5.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"tailwindcss": "^3.0.9"
},
"dependencies": {
"stylelint-scss": "^4.1.0"
}
Its a relatively fresh installation of Sage 10 and I am using tailwindcss. Is there any bud-nesting plugin or any other built-in which handles the nesting of rules with tailwindcss? Any help would be greatly appreciated.
Thank You.
this should help get you pointed in the right spot: