I’m following the tutorial with angular2, on step 3 I get the error above.
Anybody can help me?
Error
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
=> Modified – restarting.
W20160527-18:16:12.901(-3)? (STDERR)
W20160527-18:16:12.901(-3)? (STDERR) /Users/rodrigocastilho/.meteor/packages/meteor-tool/.1.3.2_4.lbyo5v++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:267
W20160527-18:16:12.901(-3)? (STDERR) throw(ex);
W20160527-18:16:12.901(-3)? (STDERR) ^
W20160527-18:16:13.210(-3)? (STDERR) Error: A method named ‘/parties/insert’ is already defined
W20160527-18:16:13.210(-3)? (STDERR) at packages/ddp-server/livedata_server.js:1548:15
W20160527-18:16:13.210(-3)? (STDERR) at Function..each..forEach (packages/underscore/underscore.js:113:1)
W20160527-18:16:13.210(-3)? (STDERR) at Server.methods (packages/ddp-server/livedata_server.js:1544:7)
W20160527-18:16:13.211(-3)? (STDERR) at packages/allow-deny/allow-deny.js:191:24
W20160527-18:16:13.211(-3)? (STDERR) at [object Object].CollectionPrototype._defineMutationMethods (packages/allow-deny/allow-deny.js:190:5)
W20160527-18:16:13.211(-3)? (STDERR) at new Mongo.Collection (packages/mongo/collection.js:226:8)
W20160527-18:16:13.211(-3)? (STDERR) at meteorInstall.collections.parties.js (collections/parties.ts:3:22)
W20160527-18:16:13.212(-3)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160527-18:16:13.212(-3)? (STDERR) at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)
W20160527-18:16:13.212(-3)? (STDERR) at server/main.ts:4:29
client/app.ts
import { Component, NgZone } from '@angular/core';
import { bootstrap } from 'angular2-meteor-auto-bootstrap';
import { Parties } from '../collections/parties';
import { Mongo } from 'meteor/mongo';
@Component({
selector: 'app',
templateUrl: 'client/app.html'
})
class Socially {
parties: Mongo.Cursor<Object>;
constructor() {
this.parties = Parties.find();
}
}
bootstrap(Socially);
collections/parties.ts
import {Mongo} from 'meteor/mongo';
export let Parties = new Mongo.Collection('parties');