-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Getting Error: You attempted to render into '" + into + "' but it was not found" #10780
Comments
I believe there is a duplicate issue regarding this. Can you check for us? |
I believe I've recreated the issue in a couple jsbins. Ember 1.10: http://jsbin.com/zoxape/4/edit?html,js,output |
I'm getting the same error :/ |
@drobannx - Can you update the JSBin for 2.0.0, and confirm this is still an issue? |
@rwjblue I've made a 2.0.0 bin, and I still get the issue. Ember 1.10.0: http://jsbin.com/zoxape/4/edit?html,js,output (working) |
I can confirm that this pretty annoying bug is still here in Ember 2.3.1. |
I'm having same problem on Ember 2.3.1. I'm using pod structure for my app. Update: Okay I've made that working with a bit of workaround. I'm calling render in mixin attached to application route (it's for showing modal content). When I tried to render same template in some custom route then I had the error. My fix was to attach the mixin to this route, so now action is not bubbling to application route where it was failing. Althought it works now I still see error in console. |
+1 exactly the same bug on 2.3.0. |
+1 2.4.1 |
Hello, It seems this bug is almost 1y old. Since it seems it's not going to be fixed any time soon, is there any workaround ? My use case is to render some route in an other layout than This is my
I have an Please advise. Thanks |
As for me I use pretty dirty warkaround: I have scrpit that conpletely |
I actually introduced a It seems similar to what you are doing, but sadly feels rather hacky. At least it works. |
Could someone provide an example of fix?( using jsbin or something else) |
Bump. The issue is still present on 2.7 beta. |
Checking in from 2.7 release. |
Having this issue on 2.4.0 |
I have the same problem here is my twiddle https://ember-twiddle.com/5545ecd06bb4e876a9e16644396814aa /show2 works with application.hbs perfect |
For people who are wondering why this bug is still open: this bug has lingered at low priority because only a small minority of apps use I would have killed Just stop using For rendering to modals and sidebars, see https://github.com/ef4/ember-elsewhere For trying to not show the application.hbs template sometimes: don't do that, you're abusing the meaning of application.hbs. It is literally supposed to be the template that is always present. Move your sometimes-present content into a child route below it (and remember that routes can have |
This issue is still present on 2.10.0 release! |
We replaced all https://www.emberjs.com/api/classes/Ember.Templates.helpers.html#method_component |
Hi janwerkhoven Can you explain how implemented this solutions? |
Our app relies on series of modals being shown on top of a page. To manage we would render the page in the
Our parent route
That has worked for us for 2 years until now we are refactoring bits and start hitting this enigmatic
The beauty about this is that ever step along the way, the route, the service, the component, all of them are now easier to write tests for. Works like a charm :) |
janwerkhoven I would like to use something similar like ruby on rails What you put me do not understand how I can use for what I want, could you help me if possible? |
@halleyrv The meaning of Move the things you have in application.hbs to something like logged-in.hbs instead, and use a route structure like: this.route('login');
this.route('logged-in', { path: '/' }, function() {
// all your other routes go here
}); |
Hi @ef4 I use /app/router.js
This is my app/application.hbs
this is my amigo.hbs where are the new design for the templates.
This is my dashboard.hbs |
@halleyrv You need to move route and controller and template correspondingly. |
Thanks a lot @kumkanillam and @ef4 and @janwerkhoven I could solve it, i will place the Solution now for multi template layout in ember for other user For other users who have this problem. If I want my login template to have a different template and all other routes inherit from another template than the login template, here are the steps: First in your app/router.js create
where layoutapp is where i put the new template for other route , it is important the path: '/' To tell you which routes to take from the root. Then inside the same directory where the application.hbs file is. I create a file called layoutapp.hbs. This is important since this will be the template file for the other routes. So I create layoutapp with same name the route layoutap. Now i put the content for this template. app/templates/layoutapp.hbs
So in the application.hbs i put this online The route login inherit template from application.hbs and the other routes example welcome inherit template from layoutapp. |
This issue can be closed since |
Running into an issue since upgrading to 1.11 regarding code that changed when using this.render from a route. I'm using the ember-modals addon which makes a call to this.render from a route with a template name and some options specifying how to render the template. The issue is that appendOrphan gets called when using this.render. It seems like appendOrphan expects a call to be made to impersonateAnOutlet which would set the wasUsed value. But it looks like impersonateAnOutlet only gets called when using the {{render}} helper.
The text was updated successfully, but these errors were encountered: