Gustavo Siqueira Gustavo Siqueira - 2 months ago 14
Javascript Question

Could not find "application" template or view. Nothing will be rendered Object {fullName: "template:application"}

I recently updated an

ember-cli
project from
0.0.44
to
0.1.1
and all of the sudden my templates are not loading anymore, instead I get the following warnings on the console:

Could not find "application" template or view. Nothing will be rendered Object {fullName: "template:application"}

Could not find "index" template or view. Nothing will be rendered Object {fullName: "template:index"}


The steps I took to update the project was just:

npm install --save-dev ember-cli
ember init


this is my router:

import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
location: config.locationType
});

Router.map(function() {
this.route('login');
this.route('permission');
this.route('user');
this.route('room');
this.route('room/new');
});

Router.reopen({
notifyGoogleAnalytics: function() {
return window.ga('send', 'pageview', {
'page': this.get('url'),
'title': this.get('url')
});
}.on('didTransition')
});

export default Router;


this is my
app.js
:

import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';

Ember.MODEL_FACTORY_INJECTIONS = true;

var App = Ember.Application.extend({
modulePrefix: config.modulePrefix,
autoprefixer: {
browsers: ['> 1%', 'last 1 version', 'android 4', 'ios 6']
},
podModulePrefix: config.podModulePrefix,
Resolver: Resolver
});

loadInitializers(App, config.modulePrefix);

export default App;


any help?

Answer

This should help:

npm cache clear
bower cache clean
rm -rf dist tmp bower_components node_modules
npm install
bower install
Comments