-
Notifications
You must be signed in to change notification settings - Fork 136
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
Loading angular apps (different versions) inside root appliatin with singleSpaEntry exposed inside each app #50
Comments
The Angular CLI does not compile the App as UMD module. And therefore system.js in the portal app can't load it. You need a custom webpack.config.js which defines all the necessary steps to compile the Angular app with singleSpaEntry.js as entry file to a UMD module. Take a look in the folder "app5Angular" which is an Angular 6 app that works. |
So, if we have a team working with a project generate with angular-cli, we need to eject the build to do with webpack? it's posible to mantain both configurations (angular-cli and webpack.config) in the same project? |
Also, I am getting the same issue... Is there any way to load angular 6 cli app with singleSpaEntry.js? |
Did you find a way around this? I am also having this issue. |
@fireappsAdmin @kgamalseif @adrianlemess You'll find more info at the package website. Anyways if you place just the webpack.config.js in your root folder and add the |
@maciej-w I am able to browse my app after Appreciate your help... |
@kgamalseif - I can see that this is a different app than form the example. To me it looks like your module is not building correctly, without looking at the code I'm not able to help. Please follow this to check if your code follows best practices: Angular AOT |
I am working to build an app to load different version angular apps using loader (root application) approach.
app1 -> angular 1.x
app2 -> angular 4 (using angular-cli)
app3 -> angular 6 (using angular-cli)
Each app will have singleSpaEntry.ts with mount, unmount (lifecyle methods). All these apps are managed and implemented by different teams.
Registering application
Can you please let me know, is there any format or dependencies i need to follow to compile singleSpaEntry.ts?
Getting below error while trying to access the app.
Uncaught Error: Application 'app6' died in status LOADING_SOURCE_CODE: Unexpected token <
Please find the example app created at https://github.com/naresh217/single-spa
The text was updated successfully, but these errors were encountered: