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.18.2 with Tailwindcss #120

Closed HiIAmShashank closed 5 months ago

HiIAmShashank commented 5 months ago

I am trying to run my app with TailwindCss v3.4.1 and SPFx 1.18.2 and i get the following error

Issue with TailwindCss 1

I am able to run it successfully with regular gulp serve. The project files are linked below. twcss I believe this is similar to the issue linked below issue 101

Node Version: 18.19.0 OS: Windows

HiIAmShashank commented 5 months ago

Hello @s-KaiNet , Did you have a chance to look at this?

s-KaiNet commented 5 months ago

I've created a separate branch, where the issue is fixed. You could simply check it out, run npm i and then npm run serve.

To test if it works for your project, you should completely remove node_modules folder and delete package-lock.json file. Then update package.json and replace spfx-fast-serve-helpers version with 1.18.9-beta.0. After that run npm i and see if the issue is still reproducible. If the fix works for you, I will publish "normal" version (not beta).

HiIAmShashank commented 5 months ago

Hello @s-KaiNet , I was able to get it to work with the beta version! Thanks!

s-KaiNet commented 5 months ago

@HiIAmShashank thanks for validating the issue, 1.18.9 version with the fix is published.