-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Not able to get ember to load, looks like it's not calling ember #15
Comments
If I set autoRun to true in my ember-cli-build.js I can see the ember quick start running but that's going against the instructions.
Outside of this example, in regards to the real ember application that I was trying to migrate, I enable autoRun to true but ran into this error I found a similar ticket and think it may be related or not. |
I haven't tried single-spa-ember in a couple years. The last time I did so was with Ember CLI 3.12.0. You can see the source code for it at https://github.com/single-spa/single-spa-examples/tree/master/src/ember-app. What I remember from the experience was that Ember wasn't well suited at that time for single-spa, since it had strong assumptions in its compilation/bundling that didn't use industry norms like webpack and didn't really jive with the concept of in-browser javascript modules representing a microfrontend. My guess here is that you're using a newer version of Ember that no longer works with single-spa-ember. If you have interest in helping revive the project, I'd be happy to guide you on diagnosing problems and making changes to single-spa-ember. |
I have get it to a working stage with some changes here Mount point in index.html for ember appWe need a mount point for our ember app to render in the DOM something like
Use hash-based routing in Ember appsWe need to use hash routing in Ember because if we use Set autoRun to trueIt looks like single-spa is not able to initiate the ember app on-demand, so it makes sense to auto start the Ember app |
Thanks @rajasegar for your work and research into this.
👍 we should add this to the documentation for single-spa ember.
This is something that should be fixed. If you can provide more details about the issues caused by history routing, I'd be happy to help diagnose them.
I strongly disagree with this. The last time i tried single-spa-ember, I was able to get it to mount and unmount on demand. The entire point of single-spa applications is that they can be mounted and unmounted programmatically, on demand. If that is not happening, it's not single-spa. We should work on fixing this rather than accepting it. |
@joeldenning The |
Ah yes, calling |
@joeldenning @rajasegar when I change the locationType to hash it works perfectly removing this shit error. Do you have some idea why it happens? If I use hash I can't access the nested routes, like payments.chargeback directly. Why when we use |
@villander I think |
Hi, I made an example of the issue here on this git hub repo to help explain/show the issue I'm seeing.
The README.MD has setup instructions.
[email protected]:genechan/single-spa-ember-bug.git
https://github.com/genechan/single-spa-ember-bug
I'm trying to setup ember with single-spa-ember, I see my vendor and ember.js file load but the ember application does not start. For a test, I'm using the default ember quick start as the ember app to avoid any personal ember code mistakes. https://guides.emberjs.com/release/getting-started/quick-start/
thank you in advance for looking at this.
The text was updated successfully, but these errors were encountered: