s-KaiNet / spfx-fast-serve

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

Library components are not loaded while debugging a production build #141

Closed canturan closed 2 months ago

canturan commented 3 months ago

On the version 4.0.1 of fast-serve, there is a problem loading the library components while debugging a production build with the query parameter
?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js

If I deploy a dev package und use fast-serve, everything works as expected.

On the network tab I see the following problem:
image

image

Even though the path of the file is correct, it gives me 404 Not Found

Could you please check the issue?

Additional info: I have updated my solution to SPFx 1.19. So it can also be related with the webpack version which is upgraded to Webpack 5 in the latest version of SPFx. The same problem exists also on the fast-serve v3 (3.0.6 and 3.0.7) with SPFx 1.19

Thank you

s-KaiNet commented 2 months ago

I can see that, in general, there are some problems with library components on SPFx 1.19. Trying to understand what's going on and how to fix it.

s-KaiNet commented 2 months ago

Please run npm i spfx-fast-serve-helpers@1.19.2 -DE. This installs the latest version, with problems fixed for library components. Could you check and tell if the issue is fixed for you?

canturan commented 2 months ago

@s-KaiNet : Now it is working without any problem. Perfect! Thank you for the fix.

s-KaiNet commented 2 months ago

Nice!