Closed lhdeveloper closed 1 year ago
Could you create a sample spfx with Tailwindcss project, which works with the OOB gulp serve
?
@s-KaiNet I'll see if I can, and I'll share it with you.
This issue has been automatically closed because we haven't received any response back. Please feel free to reopen if needed.
I'm running my SPFX 1.17.2 application with tailwindcss and postcss but I can't run it.
I get the following screen error:
Failed to compile.
./src/webparts/bannerHome/components/BannerHome.module.scss (./node_modules/spfx-css-modules-typescript-loader!./node_modules/spfx-fast-serve-helpers/node_modules/css-loader/dist/ cjs.js??ref--8-2!./node_modules/spfx-fast-serve-helpers/node_modules/postcss-loader/dist/cjs.js??ref--8-3!./node_modules/clean- css-loader/lib??ref--8-4!./node_modules/sass-loader/dist/cjs.js??ref--8-5!./src/webparts/bannerHome/components/BannerHome.module. scss) Module build failed (from ./node_modules/spfx-fast-serve-helpers/node_modules/postcss-loader/dist/cjs.js): Error: PostCSS plugin postcss-import requires PostCSS 8. Migration guide for end-users: https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users at Processor.normalize (/Applications/XAMPP/xamppfiles/htdocs/hywork-lab/node_modules/spfx-fast-serve-helpers/node_modules/postcss/lib/processor.js:153:15) at new Processor (/Applications/XAMPP/xamppfiles/htdocs/hywork-lab/node_modules/spfx-fast-serve-helpers/node_modules/postcss/lib/processor.js:56:25) at postcss (/Applications/XAMPP/xamppfiles/htdocs/hywork-lab/node_modules/spfx-fast-serve-helpers/node_modules/postcss/lib/postcss.js:55:10) at Object.loader (/Applications/XAMPP/xamppfiles/htdocs/hywork-lab/node_modules/spfx-fast-serve-helpers/node_modules/postcss-loader/dist/index.js:95:20)
I've already tried to update the version of tailwind and postcss according to the documentation but the error still persists.
![Captura de Tela 2023-06-16 às 09 22 56](https://github.com/s-KaiNet/spfx-fast-serve/assets/15928104/0974bf14-f8a6-45f9-bc2e-5a34b999192f)