-
-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE: Object doesn't support this action in app-errors.js #612
Comments
Hi @kbrah, single-spa supports IE11 but not IE10. Are you trying IE11? Regarding the screenshot you shared with the stacktrace, my guess is that the error is not originating from app-errors.js. Single-spa will catch any errors thrown during Internet Explorer's error messages often end up being strings instead of Error objects that have stack traces, which makes things particularly difficult. The next steps I'd take to debug would be to go up the call stack in the browser devtools to see if you can identify where the error is coming from. I see you have a breakpoint in the devtools - you can reuse that one to go up the call stack to try to identify which application is throwing the error and why. Another thing I'd do to debug is to run the following in the browser console, and look for which application is in SKIP_BECAUSE_BROKEN status. System.import('single-spa').then(function (singleSpa) {
singleSpa.getAppNames().forEach(function (appName) {
console.log(appName, singleSpa.getAppStatus(appName));
})
}) My guess is that you'll see one of the applications in SKIP_BECAUSE_BROKEN status, which would be a clue that it might have code that doesn't work in IE11. |
Thanks for the help! I managed to trace the error back to calling setPublicPath function in my application. if I remove that, the error does not happen. Content of the app does not seem to have an effect. Any ideas from that? |
systemjs-webpack-interop had an IE11 bug that was fixed in joeldenning/systemjs-webpack-interop@59838bb and released in https://github.com/joeldenning/systemjs-webpack-interop/releases/tag/v2.1.1. Are you using 2.1.1? |
Yes I am |
If you could provide more details about the error, I'd be happy to help get any IE11 issues fixed. |
here is the stack trace
Here is the org-ui-portal.js file. Let me know if you need something else. |
Thanks for providing the extra info. I have found the issue. It is that IE11 doesn't support |
One workaround for this that doesn't require a fix to systemjs-webpack-interop is to include the following in your root config's index.ejs file at the top:
|
Fixed in joeldenning/systemjs-webpack-interop#11 and released in https://github.com/joeldenning/systemjs-webpack-interop/releases/tag/v2.1.2 Let me know if 2.1.2 works for you! |
I'm struggling to get single-spa working in IE. Currently I am with error Object doesn't support this action on app-errors.js and it points to following code. Any ideas? I have ie 11 target in my babel configs and es5 target on tsconfigs.
my index,ejs
root project webpack.config.js
root babel.config.json
The text was updated successfully, but these errors were encountered: