Closed heinrich-ulbricht closed 1 year ago
Don't know what I did wrong, but I get this error now even after rolling back to 1.17. Do you have an idea what could cause this?
After some digging in other issues I found that I might have to add this line to my mergeConfig
:
fs.writeFileSync("./temp/_webpack_config.json", JSON.stringify(generatedConfiguration, null, 2));
After adding, it works again. Funny thing: this line was never in place. I noticed that _webpack_config.json
is generated on gulp bundle
. Maybe I never called that after cleaning up? Dunno. Now it works.
Just to comment on this - you could check out sample config here, it should be enough to run fast-serve.
I pretty much did that. With 1.18 it stopped working and I had to add the line. This made it work again. Remove the line: breaks. Add the line: works.
So I'm leaving it in and wait for 1.19 🙃
I upgraded an existing project from SPFx 1.17 to 1.18, upgraded
spfx-fast-serve-helpers
to 1.18.0, and it (npm run serve
) worked.Then I did something (not sure what, it involved fiddeling with dependencies, unrelated to spfx-fast-serve) and it stopped working. The error now is:
Now I am unsure if spfx-fast-serve working at all was just an artifact, and it is not yet compatible with SPFx 1.18. Is it? (That would be fantastic. Cannot work without it.)