-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for Angular 13 #395
Comments
Do we have any plan soon to update it to angular 13 ? |
Hey, what issues are you experiencing with Angular 13? We don't use any functionality that was removed in Angular 13 (marked as a breaking change) within the library code. Angular 13 has just introduced the new package format (which is only related to how libraries are published and they're not run through the I can't update this repo to Angular 13 since it uses Nx which is not compatible with Angular 13 yet. I'll be able to do that only when Nx releases the Angular 13 compatible version. |
Hi, I try in angular 13 and i have this problem, its a clean proyect
|
Alright, this is because we’re using |
Hi, |
Same here, I patched the single-spa config for now by following webpack doc: const singleSpaWebpackConfig = singleSpaAngularWebpack(config, options);
const singleSpaWebpackConfigPatched = {
...singleSpaWebpackConfig,
devServer: {
...singleSpaWebpackConfig.devServer,
static: {
directory: singleSpaWebpackConfigPatched.devServer.contentBase,
},
}
},
};
delete singleSpaWebpackConfigPatched.devServer.contentBase; |
@joeldenning @arturovt It would be great if we don't fall behind with Single SPA when it comes to Angular migrations. Currently to run Single SPA with newest Angular v 13 one needs to do this patch plus the one that I described in #328. to make it work with Angular 12. There are still some people using Angular out there ;) Is there a plan to release updated version of single-spa-angular ? |
I made a PR 2 weeks ago (#398), but it's awaiting review. |
Great please approve @jogelin |
I also see some errors in my console concerning HMR:
In fact, by default, the client WebSocket of the Webpack dev-server is using the current host but it should target the micro-frontend server instead. So I added this in my webpack config: devServer: {
client: {
webSocketURL: {
hostname: config.devServer.host,
port: config.devServer.port,
},
},
}, I don't see the error anymore and I see now @arturovt could you include that in your PR? |
Any updates on this one? |
@joeldenning @arturovt - Just a reminder that this can be closed per #398 - thanks! |
I'll keep it opened for some time if anyone will face any issue. |
@arturovt I guess the issue is related to the custom webpack config: Am I missing something here or should this work? |
@ALP011216 made a PR with a fix: #405 |
To unlock me until PR #405 is merged, I am using a hacky solution: patch-package.
...
"exports": {
"./lib/webpack": {
"default": "./lib/webpack/index.js"
},
...
}
diff --git a/node_modules/single-spa-angular/package.json b/node_modules/single-spa-angular/package.json
index 73ae5b0..8fb1f6c 100644
--- a/node_modules/single-spa-angular/package.json
+++ b/node_modules/single-spa-angular/package.json
@@ -36,6 +36,9 @@
"fesm2015": "fesm2015/single-spa-angular.mjs",
"typings": "single-spa-angular.d.ts",
"exports": {
+ "./lib/webpack": {
+ "default": "./lib/webpack/index.js"
+ },
"./package.json": {
"default": "./package.json"
}, |
https://single-spa.js.org/docs/ecosystem-angular/ including zone.js https://single-spa.js.org/docs/ecosystem-angular/#configure-routes add fix for webpack single-spa single-spa/single-spa-angular#395
I've published |
@arturovt so how does config should look like with that the latest version? |
@tymfear sorry for the late response, hard times for Ukraine.. you shouldn't do any changes, just migrate the Angular and update |
I’ll close the issue. Feel free to open new issues if you encounter anything. It would be easier to track new issues since this one is over growing. |
So, when trying to upgrade I got now the problem that importmap override does not work on CI when we run e2e with Playwright (locally it works). And with v5 that is not an issue. Has anyone seen such issues? |
Add support for the Angular 13 since it is out today
The text was updated successfully, but these errors were encountered: