I have upgrade ember version in my project and got some exceptions :
Assertion Failed: Using {{view}} or any path based on it
('path/c-text.hbs' # L1:C0) has been removed in
Ember 2.0
how I should change
{{view}}
command?
Views are deprecated in Ember 2.0, you can use the ember-legacy-views addon to add them back in.
This addon enables legacy view support without deprecation notices in Ember.js 1.13. In Ember.js 2.0 views are not present at all, and this addon brings them back. After Ember 2.4 is released this addon will no longer be compatible with Ember. It should be used to provide extra time for migrating away from views, not as a permanent solution.
Related
The official Ember.js 2.0 release post reads
the use-cases for Controllers have largely been eliminated in Ember 2.0
Is controller been deprecated like views?
No not all controllers have been deprecated as of ember 2.0. The transition to routable components will land somewhere in 2.x so you can still use Ember.Controller. The controllers that have been deprecated though are ObjectController and ArrayController.
I'm using ember table plugin. In the previous version of ember cli 0.2 ember table hello world example works well but in new version of ember cli(1.13) it is not working, it shows many deprecation warnings and one error that
Property set failed: object in path "tableComponent" could not be found or was destroyed
error details
Deprecations were detected, see the Ember Inspector deprecations tab
for more details.
The current release ember-table 0.9.0 works with ember-cli 0.2.7 and ember 1.12.
Release for ember 1.13 (and so for ember-cli 1.13) is still in development. See this conversation for details https://github.com/Addepar/ember-table/issues/337.
I'm working on adding 'ember-simple-auth' to an EAK/grunt-based ember app, upgraded to ember 1.10. Bower is pulling in the latest 'simple-auth.js', not the old 'ember-simple-auth.js' version which the 'ember app kit simple auth' example uses. The component seems to be registered with Ember OK, since if I include the js file in index.html, I get a warning that it's already registered. One of the most basic things to do in getting started with simple-auth is to import the ApplicationRouteMixin into the ApplicationRoute, but I get 'module is not defined' or 'cannot be found'. I've tried many versions of syntax which I've seen in examples and blogs. Like 'import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin' with ApplicationRouteMixin or SimpleAuth.ApplicationRouteMixin or Ember.SimpleAuth.ApplicationRouteMixin. Marco suggests I may need to load 'simple-auth.amd', since EAK-based apps transpile ES6 modules to AMD for loading in today's browsers. But I thought Ember Resolver handles that. I don't know how to set the grunt build to export one module over another. The old version adds the component to the namespace with 'Ember.SimpleAuth = Ember.Namespace.create', but the new versions don't have that syntax. How can I get the ember 'simple-auth' mixins imported into my Routes & Controllers?
I also tried dropping the separate mixin files into the project and was able to import/reference them that way but then there was an error about beforeModel needs to call _super so this because an uphill battle with no support or documentation so I had to give up on it. Both of my ember projects are upgraded to the latest Ember and jQuery so now am working on migrating them to CLI, then will revisit simple-auth again, since that's the only approach which might work.
My ember 1.8 app is built with grunt CLI and migrating to ember CLI isn't working out, but I'm upgrading to ember 1.10 so can use HTMLbars. The app uses ember-i18n so after loading and resolving models as it transitions to the first View, I get the error 'helper named 't' could not be found'. In 'vendor\ember-i18n\lib\i18n.js' I tried changing 'Handlebars.registerHelper' to 'Ember.HTMLBars._registerHelper', but then I get various 'is undefined' errors out of the i18n component. I read that i18n isn't supported in ember 1.9+ but I need it to work. How can I update it to work in 1.10?
I hadn't realized that my i18n package, which hadn't been updated in a year, and doesn't support the latest Ember compiler, was a forked version (lawitschka). When I switched to the original project, which is up-to-date (jamesarosen), I was able to get my Locale 'label' setup working by changing 'Ember.I18n.set('translations', data)' to 'Ember.I18n.translations = data'.
Is there a list somewhere showing the recommended versions of Handlebar to use with each of the Emberjs versions?
The hyperlinks on the Ember website have Ember 1.31 with Handlebar 1.2.1. The Handlebar website has version 1.3 as the most up-to-date download, which I've been using since Ember 1.2. Should I move back to Handlebar 1.2.1 for Ember 1.3.1?
The version tested with the release is the one expected to work correctly.
That being said it doesn't mean the future version of Handlebars won't work with it, but if a breaking change were to occur you may get yourself in trouble.
Handlebars 2.0 is recommended version for ember.js