I think it started with @microsoft/[email protected]:
With Docker on Windows, we used to apply this workaround in SPWebBuildRig.js to load the resources correctly in the local workbench.
But SPWebBuildRig.js changed significantly and I couldn't find how to apply the workaround anymore.
Now, to get back to a working state, I need to find a way to set internalModuleBaseUrls
in manifests.js to "https://localhost:4321/dist/" (instead of "https://0.0.0.0:4321/dist/").
I did a few (unsuccessful) tests:
In node_modules/@microsoft_sp-webpart-workbench/local-workbench/manifests.js, I tried to replace this:
manifest.loaderConfig.internalModuleBaseUrls = [manifestsFileUrl];
by this:
manifest.loaderConfig.internalModuleBaseUrls = ["https://localhost:4321/dist/"];
But sadly it has no effect.
I just found that this issue has been reported in https://github.com/SharePoint/sp-dev-docs/issues/7076 (no solution so far)