All the routes not loaded in Ember js 1.11 - ember.js

I'm trying to migrate an ember application from 1.10 to 1.11.4 (I'm on the way to upgrade the ember to the latest version). When I have upgraded the ember version most of the routes are not initialized (some did). Error on the console says "The route ... was not found". Also if I check using ember inspector most of the routes are not there. Working fine with 1.10.
Quite new to ember, tried for couple of days without any luck.Need some help from some experienced ember guys.

Related

Basic Ember app not working with default adapter

Here is the source code.
I'm running Ember-CLI from the master branch of the git repo (currently version 2.2.0-beta.1-master-e803ac7fa6) and linking via npm. This should be using versions 2.2.0 of Ember and Ember Data. In the middle of the basic tutorial, I hit an issue with Mirage and Ember Data. Without explicitly creating an application adapter, the app fails. There is a 404 error being thrown on the route that should be handled by Mirage, as well as numerous Adapter errors. No errors are shown during ember serve.
In trying to fix this, I ran into another issue. After running ember g adapter application, the app loaded in the browser but there was still an error because this generated a RESTAdapter instead of the preferred JSONAPIAdapter. After manually switching to the JSONAPIAdapter, everything is fine.
Is this an issue with Ember-CLI still using an old version of Ember Data somehow? Update: #Michael and #Gaurav found the issue with Ember-CLI. See his answer for the Github issue link.
The original question still stands, though. Should Ember be able to function without explicitly creating an adapter?
This is a bug with Ember CLI 2.2.0-beta.1 - it's using the wrong adapter type by default. Can you open an issue on Ember CLI? Thanks!

ember cli (1.13) ember table plugin

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.

How can I get the ember 'simple-auth' mixins imported into my Routes & Controllers?

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.

How can I update ember-i18n component to work in ember 1.10 with HTMLbars?

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'.

Compatible Versions: Ember, Ember Data, Handlebars

I am trying to learn Ember.js by following TodoMVC example. I am quite confused on with versions of Ember, Ember Data and Handlebars are compatible. The tutorial states following
Blockquote
The latest release candidate (RC3) of Ember.js can be downloaded directly from the Ember.js website. Ember.js has two dependencies: jQuery and Handlebars. jQuery can be downloaded from at http://jquery.com/ and Handlebars can be downloaded at http://handlebarsjs.com/. This guide uses ember-data for managing model data. The latest development builds of Ember data can be downloaded at http://builds.emberjs.com/. The build compatible with RC3 has the SHA e324f0e.
The Ember RC3 is no longer in download link. It has RC5. Can any one please help me which versions should I use?
Thanks
Currently the latest versions are
handlebars 1.0
ember rc.5
ember-data 0.13
All of those versions were bumped within the last week, so there won't be a lot of information the web just yet. You can download them from their respective websites (for ember-data read the blog post on the emberjs website. The link is in the comments)
I'd suggest you use the latest versions if you're starting out. Not much has changed in ember since RC-3, so you won't miss anything. I suggest you read some of the blog posts on the ember site for the changes in each revision. The team is very good in putting up explanations on the blog regarding updates.