Hi
I am trying to get moment.js working with ember-cli. It give my the following errors when i start the server. Anyone help me please ?
i have this in my bower.json
{
"name": "example",
"dependencies": {
"handlebars": "~1.3.0",
"jquery": "^1.11.1",
"qunit": "~1.12.0",
"ember-qunit": "~0.1.5",
"ember": "1.5.1",
"ember-data": "1.0.0-beta.8",
"ember-resolver": "~0.1.1",
"ic-ajax": "~1.x",
"loader": "stefanpenner/loader.js#1.0.0",
"ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.2",
"ember-load-initializers": "stefanpenner/ember-load-initializers#0.0.2",
"ember-qunit-notifications": "^0.0.1",
"ember-cli-test-loader": "rjackson/ember-cli-test-loader#0.0.2",
"pretender": "trek/pretender#0.0.6",
"bootstrap": "~3.1.1",
"moment": "~2.7.0"
}
}
and in my Brokfile.js
var EmberApp = require(āember-cli/lib/broccoli/ember-appā);
var app = new EmberApp({ name: require(ā./package.jsonā).name,
// for some large projects, you may want to uncomment this (for now) es3Safe: true,
minifyCSS: { enabled: true, options: {} },
getEnvJSON: require(ā./config/environmentā) });
app.import({ development: āvendor/ember-data/ember-data.jsā,
production: āvendor/ember-data/ember-data.prod.jsā }, {
āember-dataā: [ ādefaultā ] });app.import(āvendor/ic-ajax/dist/named-amd/main.jsā, { āic-ajaxā: [ ādefaultā, ādefineFixtureā, ālookupFixtureā, ārawā, ārequestā, ] });
app.import({development:āvendor/route-recognizer/dist/route-recognizer.jsā}); app.import({development:āvendor/FakeXMLHttpRequest/fake_xml_http_request.jsā}); app.import({development:āvendor/pretender/pretender.jsā});
app.import(āvendor/momentjs/moment.jsā);
app.import(āvendor/bootstrap/dist/js/bootstrap.jsā); app.import(āvendor/bootstrap/dist/css/bootstrap.cssā);
module.exports = app.toTree();
In ember-cli version 33 i get this error when i try and do ember server :
watch ENOENT
Error: watch ENOENT
at errnoException (fs.js:1019:11)
at FSWatcher.start (fs.js:1051:11)
at Object.fs.watch (fs.js:1076:11)
at Watcher.watchdir (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/broccoli-sane-watcher/node_modules/sane/index.js:184:20)
at new Watcher (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/broccoli-sane-watcher/node_modules/sane/index.js:63:10)
at sane (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/broccoli-sane-watcher/node_modules/sane/index.js:21:10)
at EventEmitter.Watcher_addWatchDir [as addWatchDir] (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/broccoli-sane-watcher/index.js:59:17)
at /Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/broccoli/lib/builder.js:66:35
at tryCatch (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:163:16)
at invokeCallback (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:172:17)
at /Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:186:17
at flush (/Users/rmoss/Desktop/ABB/ember-apps/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/asap.js:51:9)
at process._tickCallback (node.js:415:13)
and on ember-cli version 34 i get :
ā¦ Uhoh. Got error listen EADDRINUSE ā¦ Error: listen EADDRINUSE at errnoException (net.js:904:11) at Server._listen2 (net.js:1042:14) at listen (net.js:1064:10) at Server.listen (net.js:1138:5) at Server.listen (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/tiny-lr/lib/server.js:138:15) at resolver (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/node.js:183:26) at initializePromise (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:202:9) at new Promise (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:149:9) at /home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/node.js:152:20 at tryCatch (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:163:16) at invokeCallback (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:172:17) at /home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/promise.js:186:17 at flush (/home/rmoss_uk/Desktop/ABB/ember-apps/schedmanui/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/asap.js:51:9) at process._tickCallback (node.js:415:13)
events.js:72 throw er; // Unhandled āerrorā event ^ Error: listen EADDRINUSE at errnoException (net.js:904:11) at Server._listen2 (net.js:1042:14) at listen (net.js:1064:10) at net.js:1146:9 at dns.js:72:18 at process._tickCallback (node.js:415:13)
thanks a lot