s-KaiNet / spfx-fast-serve

Improve your SharePoint Framework development flow by speeding up the "serve" command :rocket:
MIT License
132 stars 11 forks source link

Error running spfx-fast-serve in SPFX 1.17.2 with Tailwindcss #101

Closed lhdeveloper closed 1 year ago

lhdeveloper commented 1 year ago

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 23 13 Captura de Tela 2023-06-16 às 09 22 56

s-KaiNet commented 1 year ago

Could you create a sample spfx with Tailwindcss project, which works with the OOB gulp serve?

lhdeveloper commented 1 year ago

@s-KaiNet I'll see if I can, and I'll share it with you.

github-actions[bot] commented 1 year ago

This issue has been automatically closed because we haven't received any response back. Please feel free to reopen if needed.