Closed akarlsten closed 1 year ago
Finally, I was able to reproduce the issue. It fails for SPFx 1.18, but works for SPFx 1.17 (I don't know why in the previous issue the error was for 1.17 as well). Will take a look what could be done here.
Well, actually it's even more weird. If you add to a page the very first component from your "bundle" list, everything works just fine (in your sample, it's WorkspaceButtonsWebPart
). If you add any other component - it fails.
Could you install npm i spfx-fast-serve-helpers@1.18.2-beta.1 -DE
and see if this beta version fixes your issue?
We also noticed the other weirdness when testing different workarounds.
Anyway, the new version seems to have solved it! We've been testing some this morning and everything loads while fast-serving, no errors! Thanks!
JFYI spfx-fast-serve-helpers@1.18.2
was just published and you can switch to a "normal" version instead of beta.
Perhaps related to #111.
We've recently tried moving our individually bundled webparts/components into a multi-component bundle, as described here.
Going from something like:
To:
Now, the components wont load with the same [Object object] error as in the linked issue, and in the console we see errors like the following:
This only happens when serving the project, deploying it as an .sppkg works as expected!
We're using pretty standard fast-serve settings:
config.json
webpack.extend.js
This is with SPFx 1.18, fast-serve
3.0.7
and fast-serve-helpers1.18.1
Edit: to mention that there are some externals (officeJs) part of the project as well, dunno if that could affect things.