I am still getting the error below despite having following the instructions on this link Ember.js: HtmlBars and the Handlebars.compile command.
Below I have copied and pasted my package.json,bower.json and brocfile.js. Not sure what is causing the issue.
Uncaught Error: Cannot call compile
without the template compiler loaded. Please load ember-template-compiler.js
prior to calling compile
.
package.json
{
"name": "ui",
"version": "0.0.0",
"description": "Small description for ui goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"bower": "^1.3.12",
"broccoli-asset-rev": "^2.0.2",
"broccoli-merge-trees": "^0.2.1",
"broccoli-static-compiler": "^0.2.1",
"ember-cli": "0.2.7",
"ember-cli-app-version": "0.3.3",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-cookie": "^0.1.0",
"ember-cli-dependency-checker": "^1.0.0",
"ember-cli-htmlbars": "0.7.6",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-less": "^1.1.1",
"ember-cli-pusher": "0.1.2",
"ember-cli-qunit": "0.3.13",
"ember-cli-simple-auth": "^0.7.3",
"ember-cli-simple-auth-oauth2": "^0.7.2",
"ember-cli-simple-auth-torii": "^0.8.0-beta.1",
"ember-cli-tooltipster": "0.0.6",
"ember-cli-uglify": "^1.0.1",
"ember-data": "1.0.0-beta.18",
"ember-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.2",
"ember-idx-button": "^0.1.3",
"ember-idx-forms": "^0.5.1",
"ember-mousetrap": "0.2.0",
"ember-template-compiler": "^1.9.0-alpha",
"emberfire": "1.4.7",
"express": "^4.8.5",
"glob": "^4.0.5",
"torii": "^0.3.3"
}
}
bower.json
{
"name": "ui",
"dependencies": {
"ember": "1.12.0",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.18",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.3",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"loader.js": "ember-cli/loader.js#3.2.0",
"qunit": "~1.17.1",
"bootstrap": "~3.3.4",
"ember-addons.bs_for_ember": "~0.7.0",
"slick.js": "~1.4.0",
"jquery-mousewheel": "~3.1.12",
"tooltipster": "~3.3.0",
"owl-carousel2": "latest",
"ember-mousetrap": "~0.2.0",
"ember-validations": "2.0.0-alpha.3",
"rsvp": "~3.0.18",
"bootswatch": "v3.3.4+1",
"ember-simple-auth": "0.7.3",
"progressbar.js": "~0.8.1",
"select2": "~4.0.0",
"select2-bootstrap3-css": "~1.4.6",
"jssocials": "~0.2.0",
"firebase": "^2.1.0",
"ember-pusher": "0.1.1",
"ember-template-compiler": "http://ift.tt/1LNmMn9"
},
"resolutions": {
"ember-cli-test-loader": "0.1.3",
"ember-load-initializers": "0.1.4",
"loader.js": "3.2.0",
"ember": "1.12.0",
"ember-data": "1.0.0-beta.18",
"ember-qunit": "0.3.3",
"ember-qunit-notifications": "0.0.7",
"jquery": "^1.11.1",
"select2": "~4.0.0"
}
}
Brocfile.js
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
// TF - Start
var pickFiles = require('broccoli-static-compiler');
var mergeTrees = require('broccoli-merge-trees');
// TF - End
var app = new EmberApp({
//http://ift.tt/1AZ9CQ7
//
vendorFiles: {
'handlebars.js': null
}
});
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-core.max.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-notifications.max.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-alert.max.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-button.max.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-modal.max.js');
.
.
.
etc
.
.
.
//http://ift.tt/1COSXhF
app.import('bower_components/ember-template-compiler/index.js');
var fontAwesome = pickFiles('bower_components/font-awesome/fonts',{
srcDir: '/',
files: ['fontawesome-webfont.eot','fontawesome-webfont.svg','fontawesome-webfont.ttf','fontawesome-webfont.woff','fontawesome-webfont.woff2','FontAwesome.otf'],
destDir: '/fonts'
});
var videojsFonts = pickFiles('bower_components/http://ift.tt/1LNmMnb',{
srcDir: '/',
files: ['vjs.ttf','vjs.woff'],
destDir: '/assets/font'
});
var bootstrapFonts = pickFiles('bower_components/bootstrap/fonts',{
srcDir: '/',
files: ['glyphicons-halflings-regular.eot','glyphicons-halflings-regular.svg','glyphicons-halflings-regular.ttf','glyphicons-halflings-regular.woff','glyphicons-halflings-regular.woff2'],
destDir: '/assets/fonts'
});
module.exports = mergeTrees([app.toTree(), videojsFonts, bootstrapFonts, fontAwesome]);
Aucun commentaire:
Enregistrer un commentaire