0
I just installed the new version of Content 1.4 and am following the tutorial of Alura. Everything was OK on the host:3000 installation and startup, and the Media information appeared. But as soon as I create a folder called "models" and insert a file called "tasks.js" to use Mongodb it gives this error and the server does not run anymore. I inserted mongoDB in the Environment Variables patch also didn’t work:
Your app is Crashing. Here’s the Latest log:
C: Users thiag Appdata Local.Meteor Packages Meteor-tool 1.4.1_2 mt-os.windows.x86_32 dev_bundle server-lib node_modules Fibers Future.js:280 throw(ex); ^
Typeerror: Mongo.Collections is not a Function at meteorInstall.models.tasks.js (models/tasks.js:1:11) at fileEvaluate (Packages/modules-Runtime/.npm/package/node_modules/install/install.js:153:1) require (Packages/modules-Runtime/.npm/package/node_modules/install/install.js:82:1) AT C: Users thiag Documents template tasklist.Meteor local build Programs server app app.js:13:1 AT C: Users thiag Documents template tasklist.Meteor local build Programs server boot.js:292:10 at Array.foreach (Native) at Function..each..foreach (C: Users thiag Appdata Local.Meteor Packages Meteor-tool 1.4.1_2 mt-os.windows.x86_32 dev_bundle server-lib node_modules underscore.js:79:11) AT C: Users thiag Documents template tasklist.Meteor local build Programs server boot.js:128:5 Exited with code: 1 Your application is Crashing. Waiting for file change.