Handlebars issue when upgrading Ember 1.9.1 - ember.js

Edit:
I tried going to another page in my app, and I wound up getting this error instead: Uncaught Error: Assertion Failed: TypeError: Cannot read property 'Mixin' of undefined. I traced it to this line of code: __exports__["default"] = DS.Model.extend(Ember.Validations.Mixin, {, which uses Ember Validations. I suspect that this is where the problem comes from. Has anyone had any problems with Ember Validations when upgrading Handlebars?
Original post:
I'm having some problems upgrading Ember to 1.9.1. Specifically, I believe it's not compiling my templates in such a way that is compatible with Handlebars 2.0. I've gathered this is a common problem, but the only solution that worked was using Ember canary rather than 1.9.1. Since that isn't an option, I need to find a way to make Handlebars 2.0 play nice with my upgraded app.
When I run my application, my console shows the error: Uncaught Error: Unknown template object: function at this portion of handlebars.js:
if (!templateSpec || !templateSpec.main) {
throw new Exception('Unknown template object: ' + typeof templateSpec);
}
I upgraded my application by first switching to Ember CLI 0.1.5 from 0.1.2 using these instructions on the Ember CLI site. I then tried to upgrade Ember to 1.9.1 by first changing the Ember version in my bower.js to 1.9.1, then following these instructions on the official Ember site. That didn't work, so I tried using Ember canary instead of 1.9.1, and that worked fine.
Here is my package.js:
{
"name": "appName",
"version": "0.0.0",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test"
},
"repository": "https://github.com/stefanpenner/ember-cli",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"body-parser": "^1.2.0",
"broccoli-asset-rev": "^2.0.0",
"broccoli-merge-trees": "^0.1.4",
"broccoli-sass": "^0.2.1",
"broccoli-static-compiler": "^0.1.4",
"ember-cli": "0.1.5",
"ember-cli-content-security-policy": "0.3.0",
"ember-cli-dependency-checker": "0.0.7",
"ember-cli-esnext": "0.1.1",
"ember-cli-htmlbars": "^0.6.0",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.1.2",
"ember-cli-simple-auth": "^0.6.7",
"ember-cli-simple-auth-oauth2": "^0.6.7",
"ember-cli-spinkit": "0.0.1",
"ember-data": "1.0.0-beta.11",
"ember-export-application-global": "^1.0.0",
"express": "^4.8.5",
"glob": "^4.0.5"
}
}
Here is my bower.js:
{
"name": "appName",
"dependencies": {
"handlebars": "2.0.0",
"jquery": "^1.11.1",
"ember": "1.9.1",
"ember-data": "1.0.0-beta.12",
"ember-resolver": "~0.1.11",
"loader.js": "stefanpenner/loader.js#1.0.1",
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
"ember-load-initializers": "stefanpenner/ember-load-initializers#0.0.2",
"ember-qunit": "0.1.8",
"ember-qunit-notifications": "0.0.4",
"qunit": "~1.15.0",
"ember-simple-auth": "0.6.7",
"bootstrap-sass-official": "~3.3.1",
"ember-validations": "http://builds.dockyard.com.s3.amazonaws.com/ember-validations/ember-validations-latest.js"
}
}
Any ideas? StackOverflow questions I may have missed?

Today I've got the same problem as you, I wanted to migrate from ember-cli 1.8.1 to 1.9.1.
I solved it by following these instructions : http://emberjs.com/blog/2014/10/16/handlebars-update.html.
Instead of following the 4th and 5th steps, you can directly change the version of ember and handlebars directly in bower.json file before executing the 'bower install' command. This is what I've done.
And my projets works with ember-cli 0.1.5, ember 1.9.1 and handlebars 2.0.0.
Maybe you missed something in the update process.

For the problem in your original post:
I had the same problem as you. For me it seems that the problem was with one of my dependencies, in my case ember-cli-bootstrap-sass.
When I did a npm uninstall ember-cli-bootstrap-sass --save-dev (and removed my #import "bootstrap"; ) I got rid of the error. So something in a dependency you use could be incompatible as you say

Related

Ember deploy script failing on specific npm package

I'm trying to deploy to my staging environment using ember deploy and continue to get this error which breaks the build
An error occurred in the constructor for ember-cli-htmlbars-inline-precompile
I tracked down the issue via guess and checking to a specific handlebars template, that once commented out stopped the problem and allowed me to finish the script. Unfortunatley I'm getting this same issue again. This error does not occur when I build or run the app locally.
Is my package.json
I'm using node 6.15.1
I've tried v0.3.0, v0.4.0, v1.0.0, and v2.0.0 of
ember-cli-htmlbars-inline-precompile to no avail.
I'm assuming my problem again is in some handlebars template, but unfortunately without the errors locally I can't deduce the location.
"name": "~~~",
"description": "Small description for ~~~~ goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "ember server",
"build": "ember build",
"test": "ember test",
"lint": "eslint .",
"postinstall": "./node_modules/bower/bin/bower install --allow-root"
},
"repository": "",
"engines": {
"node": "6.15.1"
},
"author": "",
"license": "MIT",
"devDependencies": {},
"dependencies": {
"#babel/core": "^7.4.4",
"#newrelic/publish-sourcemap": "4.4.0",
"active-model-adapter": "^2.2.0",
"babel-eslint": "^7.0.0",
"bower": "^1.8.2",
"broccoli-asset-rev": "2.2.0",
"broccoli-stew": "^2.1.0",
"ember-ajax": "^3.0.0",
"ember-cli": "~2.15.1",
"ember-cli-app-version": "^3.0.0",
"ember-cli-babel": "^6.7.1",
"ember-cli-bootstrap-sass": "git+https://github.com/~~~/ember-cli-bootstrap-sass.git",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-deploy": "^1.0.2",
"ember-cli-deploy-build": "^1.1.1",
"ember-cli-deploy-change-log": "git+https://github.com/~~~~/ember-cli-deploy-change-log.git",
"ember-cli-deploy-display-revisions": "^1.0.1",
"ember-cli-deploy-gzip": "^1.0.1",
"ember-cli-deploy-revision-data": "git+https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data.git",
"ember-cli-deploy-s3": "git+https://github.com/~~~/ember-cli-deploy-s3.git",
"ember-cli-deploy-s3-index": "git+https://github.com/~~~/ember-cli-deploy-s3-index.git",
"ember-cli-deploy-slack": "^1.0.1",
"ember-cli-eslint": "^4.0.0",
"ember-cli-flash": "^1.7.1",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.0.0",
"ember-cli-inject-live-reload": "^1.10.2",
"ember-cli-inline-content": "^0.4.0",
"ember-cli-loading-slider": "^2.0.0",
"ember-cli-moment-shim": "^3.7.1",
"ember-cli-phone-number": "^0.1.4",
"ember-cli-pretender": "0.5.0",
"ember-cli-qunit": "^4.0.0",
"ember-cli-release": "0.2.9",
"ember-cli-sass": "^10.0.0",
"ember-cli-shims": "^1.1.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-test-loader": "^2.2.0",
"ember-cli-uglify": "^1.2.0",
"ember-cli-velocity": "^0.4.0",
"ember-cli-version-checker": "^2.1.2",
"ember-click-outside": "0.1.12",
"ember-composable-helpers": "2.1.0",
"ember-data": "~2.16.3",
"ember-decorators": "^2.5.2",
"ember-export-application-global": "^2.0.0",
"ember-faker": "1.1.0",
"ember-inflector": "^2.3.0",
"ember-link-action": "^0.1.3",
"ember-load-initializers": "^1.0.0",
"ember-moment": "^7.8.1",
"ember-new-relic": "0.6.1",
"ember-resolver": "^4.0.0",
"ember-simple-auth": "^1.8.2",
"ember-source": "^2.15.3",
"ember-welcome-page": "^3.0.0",
"eslint": "~2.2.0",
"eslint-config-google": "^0.4.0",
"eslint-config-xo": "^0.10.1",
"eslint-plugin-babel": "^3.1.0",
"express": "^4.16.4",
"font-awesome": "^4.7.0",
"glob": "^7.1.4",
"jquery": "~2.2.4",
"loader.js": "^4.7.0",
"phantomjs-prebuilt": "^2.1.16",
"rsvp": "^4.8.4",
"sass": "^1.20.1",
"velocity-animate": "^1.5.2"
}
}```
By using urls from GitHub to pull in npm packages, you are grabbing the latest code from GitHub for those packages. That code isn't necessarily ready to be used with your other dependencies, and may have breaking API changes compared to what is in the READMEs.
If you use a specific version of these packages from npm, I think your problem will likely go away. If you are working off an internal fork, consider basing your work off the last stable release, rather than master of those packages.
It is possible that the deploys aren't the real problem. If you do ember serve --production, does the app run? The production flag will make sure that your app goes through all the same compilation and minification that deploy would. If running with prod doesn't work, it means that there's an issues elsewhere in your app besides those GitHub urls.
I also suggest creating a fresh 2.15 app with these dependencies to see what happens.

Illegal Operation on a Directory with Unknown Broccoli Plugin

Output from ember version --verbose && npm --version:
ember-cli: 2.12.1
http_parser: 2.7.0
node: 6.10.2
v8: 5.1.281.98
uv: 1.9.1
zlib: 1.2.11
ares: 1.10.1-DEV
icu: 58.2
modules: 48
openssl: 1.0.2k
os: darwin x64
3.10.10
When I try ember s I have the following error,
Livereload server on http://localhost:49153
Serving on http://localhost:4200/
The Broccoli Plugin: [object Object] failed with:
Error: EISDIR: illegal operation on a directory, read
at Error (native)
at Object.fs.readSync (fs.js:732:19)
at tryReadSync (fs.js:487:20)
at Object.fs.readFileSync (fs.js:535:19)
at /Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/broccoli-flatiron/index.js:33:16
at Array.forEach (native)
at readDirectory (/Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/broccoli-flatiron/index.js:28:31)
at /Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/broccoli-flatiron/index.js:21:15
at tryCatch (/Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/rsvp/dist/rsvp.js:539:12)
at invokeCallback (/Users/li-xinyang/Desktop/XX_MemoCycle_Firebase/node_modules/rsvp/dist/rsvp.js:554:13)
The broccoli plugin was instantiated at:
undefined
Below is a list of devDependencies,
package.json File
{
"name": "memo-cycle",
"version": "0.0.0",
"description": "A study tool for serious learner",
"license": "MIT",
"author": "",
"directories": {
"doc": "doc",
"test": "tests"
},
"repository": "",
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember test"
},
"devDependencies": {
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^2.4.1",
"ember-cli": "2.12.1",
"ember-cli-app-version": "^2.0.0",
"ember-cli-babel": "^5.1.7",
"ember-cli-dependency-checker": "^1.3.0",
"ember-cli-eslint": "^3.0.0",
"ember-cli-gravatar": "^3.8.1",
"ember-cli-htmlbars": "^1.1.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.6",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-qunit": "^3.1.0",
"ember-cli-sass": "^6.1.2",
"ember-cli-shims": "^1.0.2",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-export-application-global": "^1.0.5",
"ember-in-viewport": "^2.1.1",
"ember-inline-svg": "^0.1.10",
"ember-load-initializers": "^0.6.0",
"ember-paper": "^1.0.0-alpha.19",
"ember-power-select": "^1.6.1",
"ember-power-select-with-create": "^0.3.1",
"ember-resolver": "^2.0.3",
"ember-route-action-helper": "^2.0.2",
"ember-simple-auth": "^1.2.2",
"ember-source": "~2.12.0",
"loader.js": "^4.2.3"
},
"engines": {
"node": ">= 4"
},
"private": true
}
It was working fine before my last to commit. What I have done in the last two commits are I remove all .DS_Store files in the last commit and added Firebase deploy config files and install cloud function dependencies via Yarn in the last second commit.
What I have tried to resolve the issues, but the issue persists.
1) Delete all node modules via rm -rf node_modules and re-install them npm install (dependencies were installed via Yarn)
2) Remove the project and clone from the origin
3) Revert back to early commit (issue persists even I revert back to the initial commit and re-install all the dependencies of course)
4) Restart Mac 😅
5) Update .ember-cli file and re-run ember init setup process
The issues is caused by
That plugin looks like it was built for an older version of broccoli, but the basic problem seems that its write function doesn't handle symlinks to directories.
See this GitHub issue for more details
https://github.com/ember-cli/ember-cli/issues/6981

Failed to start Ember after upgrade, es5-shim.js not found

I upgraded embercli, emberjs and ember data. After I run ember init. Then when I ember server, I got below stuff. I have tried to redo everything (upgrading). Same result. There is no error. Only a couple warnings when I upgrade embercli. I attached the warning at the end. I am not sure if they are relevant.
[jusfeel#localhost hillwave-ember-js]$ ember serve
version: 2.4.2
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
Livereload server on http://localhost:49152
Serving on http://localhost:4200/
The Broccoli Plugin: [SourceMapConcat: Concat: Vendor /assets/vendor.js] failed with:
Error: ENOENT: no such file or directory, stat '/home/jusfeel/ember/hillwave-ember-js/tmp/source_map_concat-input_base_path-CxIUyeSW.tmp/0/bower_components/es5-shim/es5-shim.js'
at Error (native)
at Object.fs.statSync (fs.js:893:18)
at ConcatWithMaps.keyForFile (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/index.js:90:20)
at Array.map (native)
at ConcatWithMaps.CachingWriter._conditionalBuild (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/index.js:112:65)
at /home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/node_modules/broccoli-plugin/read_compat.js:61:34
at lib$rsvp$$internal$$tryCatch (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1019:11)
at lib$rsvp$asap$$flush (/home/jusfeel/ember/hillwave-ember-js/node_modules/rsvp/dist/rsvp.js:1198:9)
The broccoli plugin was instantiated at:
at ConcatWithMaps.Plugin (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/node_modules/broccoli-plugin/index.js:10:31)
at ConcatWithMaps.CachingWriter [as constructor] (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-caching-writer/index.js:21:10)
at new ConcatWithMaps (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-concat/concat.js:22:17)
at module.exports (/home/jusfeel/ember/hillwave-ember-js/node_modules/broccoli-concat/index.js:26:10)
at EmberApp.concatFiles (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:329:10)
at EmberApp.javascript (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:1190:12)
at EmberApp.toArray (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:1542:10)
at EmberApp.toTree (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/broccoli/ember-app.js:1564:30)
at module.exports (/home/jusfeel/ember/hillwave-ember-js/ember-cli-build.js:38:14)
at Class.module.exports.Task.extend.setupBroccoliBuilder (/home/jusfeel/ember/hillwave-ember-js/node_modules/ember-cli/lib/models/builder.js:55:19)
My bower.json
{
"name": "hillwave-ember-js",
"dependencies": {
"ember": "2.4.2",
"ember-cli-shims": "0.1.0",
"ember-cli-test-loader": "0.2.2",
"jquery": "~2.1.0",
"bootstrap": "~3.3.6",
"showdown": "~1.3.0",
"fastclick": "^1.0.6"
},
"resolutions": {
"ember": "2.3.1"
},
"devDependencies": {
"blanket": "~1.1.5",
"ember-qunit-notifications": "0.1.0"
}
}
My package.json
{
"name": "hillwave-ember-js",
"version": "0.0.0",
"description": "Small description for hillwave-ember-js goes here",
"private": true,
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember test"
},
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.2.0",
"ember-ajax": "0.7.1",
"ember-cli": "^2.4.2",
"ember-cli-app-version": "^1.0.0",
"ember-cli-babel": "^5.1.5",
"ember-cli-blanket": "0.8.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-deploy": "0.5.1",
"ember-cli-deploy-build": "0.1.1",
"ember-cli-deploy-display-revisions": "0.1.1",
"ember-cli-deploy-revision-data": "0.1.1",
"ember-cli-deploy-rsync": "0.0.4",
"ember-cli-deploy-ssh-index": "0.2.0",
"ember-cli-document-title": "0.3.0",
"ember-cli-es5-shim": "^0.1.1",
"ember-cli-fastclick": "1.1.0",
"ember-cli-flash": "1.3.8",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.2.1",
"ember-cli-release": "0.2.8",
"ember-cli-showdown": "2.5.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.4.0",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-export-application-global": "^1.0.4",
"ember-i18n": "4.2.0",
"ember-infinity": "0.2.1",
"ember-lazy-image": "https://github.com/twokul/ember-lazy-image.git",
"ember-load-initializers": "^0.5.0",
"ember-page-object": "1.1.1",
"ember-resolver": "^2.0.3",
"ember-route-history": "0.1.3",
"ember-simple-auth": "1.0.1",
"ember-suave": "1.2.3",
"emberx-select": "2.0.2",
"fastclick": "1.0.6",
"graceful-fs": "^4.1.3",
"memory-scroll": "0.2.0"
},
"dependencies": {
"fonts.css": "^1.4.0",
"loader.js": "^4.0.0"
}
}
Some warnings when upgrade embercli from 2.2.0 to 2.4.2.
npm WARN deprecated lodash-node#2.4.1: This package has been discontinued in favor of lodash#^4.0.0.
npm WARN deprecated graceful-fs#3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs#^4.0.0 as soon as possible.
npm WARN prefer global marked#0.3.5 should be installed with -g
npm WARN prefer global npm#2.14.21 should be installed with -g
Edit
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
minifyCSS: {
enabled: true,
compatibility: '-properties.backgroundSizeMerging'
}
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/bootstrap/dist/css/bootstrap.css.map',{
destDir: 'assets'
});
app.import('vendor/royal_preloader/royal_preloader.css');
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
app.import('vendor/royal_preloader/royal_preloader.min.js');
app.import('vendor/jquery.qrcode.min.js');
app.import('vendor/royal_preloader/config.js');
return app.toTree();
};
It's a mistake I made. When I do ember init, I didn't pay attention to remove es5-shim from package.json and left it there. That's why this issue caught me.
I guess I should be much much more careful when I do ember init like the release doc actually had warned.
The most common source of upgrade pain is missing changes in this
step.

ember build Parse error on line 1: {{#each messages as |message|}}

Hi I was attempting to update my ember cli project from ember 1.8.1 -> 1.9.1 & handlebar 1.3.0 -> 2.0.0 however now I get the following error, when I use the command ember build :
Build failed.
File: ui/templates/components/ember-notify.hbs
Parse error on line 1:
{{#each messages as |message|}} {{#vie
--------------------^
Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'NUMBER', 'BOOLEAN', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'EQUALS', 'DATA', 'SEP', got 'INVALID'
Error: Parse error on line 1:
{{#each messages as |message|}} {{#vie
--------------------^
Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'NUMBER', 'BOOLEAN', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'EQUALS', 'DATA', 'SEP', got 'INVALID'
at Object.parseError (/Users/shivamsinha/Desktop/Programming/workspace/feedserver/ui/node_modules/ember-cli-htmlbars/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:106:11)
at Object.parse (/Users/shivamsinha/Desktop/Programming/workspace/feedserver/ui/node_modules/ember-cli-htmlbars/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js:158:22)
at HandlebarsEnvironment.parse (/Users/shivamsinha/Desktop/Programming/workspace/feedserver/ui/node_modules/ember-cli-htmlbars/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js:18:17)
at TemplateCompiler.EmberHandlebars.precompile (/Users/shivamsinha/Desktop/Programming/workspace/feedserver/ui/node_modules/ember-cli-htmlbars/node_modules/ember-template-compiler/vendor/ember-template-compiler.js:239:24)
at TemplateCompiler.processString (/Users/shivamsinha/Desktop/Programming/workspace/feedserver/ui/node_modules/ember-cli-htmlbars/index.js:58:38)
at TemplateCompiler.Filter.processFile (/Users/shivamsinha/Desktop/Programming/workspace/feedserver/ui/node_modules/ember-cli-htmlbars/node_modules/broccoli-filter/index.js:136:31)
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.0",
"broccoli-merge-trees": "^0.2.1",
"broccoli-static-compiler": "^0.2.1",
"ember-cli": "^0.1.11",
"ember-cli-babel": "^5.0.0",
"ember-cli-content-security-policy": "0.3.0",
"ember-cli-cookie": "^0.1.0",
"ember-cli-dependency-checker": "0.0.7",
"ember-cli-htmlbars": "^0.6.0",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-less": "^1.1.1",
"ember-cli-qunit": "0.3.1",
"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-data": "1.0.0-beta.15",
"ember-export-application-global": "^1.0.0",
"ember-idx-button": "^0.1.3",
"ember-idx-forms": "^0.5.1",
"ember-mousetrap": "0.2.0",
"ember-notify": "^3.1.4",
"ember-template-compiler": "^1.9.0-alpha",
"express": "^4.8.5",
"glob": "^4.0.5",
"torii": "^0.3.3"
}
}
bower.json
{
"name": "ui",
"dependencies": {
"handlebars": "~2.0.0",
"jquery": "^1.11.1",
"ember": "1.9.1",
"ember-data": "1.0.0-beta.15",
"ember-resolver": "~0.1.11",
"loader.js": "ember-cli/loader.js#1.0.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.0.2",
"ember-qunit": "0.1.8",
"ember-qunit-notifications": "0.0.5",
"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",
"videojs-youtube": "~1.2.8",
"tooltipster": "~3.3.0",
"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",
"selectivity": "~1.1.0",
"select2": "~4.0.0",
"select2-bootstrap3-css": "~1.4.6",
"jquery-mentions": "~1.0.1",
"jquery-autocomplete": "~1.1.1",
"owl.carousel": "2.0.0-beta.2.4"
}
}
I think you might be using old version of HTMLBars and/or Ember CLI. You should upgrade to Ember CLI 0.2.7 from ^0.1.11(that's weird you're using ^ here, because upgrading from each version of Ember CLI requires some steps to take) and ember-cli-htmlbars to 0.7.6.
Here's the valid package.json file for latest versions of Ember and valid bower.json.
Check what version of Ember CLI you have installed currently, or please remove it completely, then update important package versions in package.json, bower.json to valid ones linked before. Then do setup steps and project update steps from Ember CLI releases site(clean cache etc.).

Could not find module `simple-auth-devise/configuration`

I've just been trying to install ember-cli-simple-authand ember-cli-simple-auth-devise.
I went through the exact same process last week and it worked fine. However, since then, Ember CLI has been updated and the install:addon command has been deprecated.
So instead of:
ember install:addon ember-cli-simple-auth
ember install:addon ember-cli-simple-auth-devise
I am using:
ember install ember-cli-simple-auth
ember install ember-cli-simple-auth-devise
However, at the end of each of these commands I get:
The ember generate command requires an entity name to be specified.
For more details, use ember help.
I tried running these commands manually, based upon the "old instructions" found here
ember generate ember-cli-simple-auth
ember generate ember-cli-simple-auth-devise
but then when I start the server I get the following error:
loader.js:110 Uncaught Error: Could not find module simple-auth-devise/configuration imported from bazmics/initializers/simple-auth-devise
and the app refuses to load.
The only way I'm able to get the app working again is to remove:
"ember-cli-simple-auth": "^0.8.0-beta.1",
"ember-cli-simple-auth-devise": "^0.8.0-beta.1",
from my packages.json, run npm install and then restart my server.
Just for good measure, I tried using npm install... rather than ember install... and then running the installers. No errors, but the same end result.
My versions:
DEBUG: -------------------------------
ember.debug.js:5197DEBUG: Ember : 1.11.1
ember.debug.js:5197DEBUG: jQuery : 1.11.2
ember.debug.js:5197DEBUG: -------------------------------
VM11004:66 Ember Inspector Active
Update: 8/4/2015
I've just tried running the following:
npm install --save-dev ember-cli-simple-auth
npm install --save-dev ember-cli-simple-auth-devise
generate ember-cli-simple-auth
generate ember-cli-simple-auth-devise
I don't get any errors, but the same thing is happening when I run ember server (nothing past the page body renders).
After the above commands the contents of my package.json is:
{
"name": "enerlytics",
"version": "0.0.0",
"description": "Small description for enerlytics 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": {
"broccoli-asset-rev": "^2.0.2",
"broccoli-sass": "^0.6.4",
"ember-cli": "0.2.3",
"ember-cli-app-version": "0.3.3",
"ember-cli-babel": "^5.0.0",
"ember-cli-bootstrap-sass": "^0.2.11",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "0.0.8",
"ember-cli-htmlbars": "0.7.4",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-qunit": "0.3.10",
"ember-cli-simple-auth": "^0.8.0-beta.1",
"ember-cli-simple-auth-devise": "^0.8.0-beta.1",
"ember-cli-uglify": "1.0.1",
"ember-data": "1.0.0-beta.16.1",
"ember-export-application-global": "^1.0.2"
}
}
The contents of my node_modules folder is:
broccoli-asset-rev
broccoli-sass
ember-cli
ember-cli-app-version
ember-cli-babel
ember-cli-bootstrap-sass
ember-cli-content-security-policy
ember-cli-dependency-checker
ember-cli-htmlbars
ember-cli-ic-ajax
ember-cli-inject-live-reload
ember-cli-qunit
ember-cli-simple-auth
ember-cli-simple-auth-devise
ember-cli-uglify
ember-data
ember-export-application-global
The contents of my bower.json is:
{
"name": "enerlytics",
"dependencies": {
"ember": "1.11.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.0.0-beta.16.1",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.4",
"ember-qunit": "0.3.1",
"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-sass-official": "~3.3.4",
"ember-simple-auth": "0.8.0-beta.1"
}
}
and the contents of my bower_components folder is:
bootstrap-sass-official
ember
ember-cli-shims
ember-cli-test-loader
ember-data
ember-load-initializers
ember-qunit
ember-qunit-notifications
ember-resolver
ember-simple-auth
jquery
loader.js
qunit
qunit-notifications
The error you're seeing ("The ember generate command requires an entity name to be specified. For more details, use ember help.
") is actually irrelevant as it doesn't prevent the actually important tasks from running and will be fixed in the next version of Ember CLI probably.
For now you can safely ignore it.