Problems with the new version of Meteor because of MongoDB

0

I just installed the new version of meteor 1.4 and I'm following the Alura tutorial. Everything OK at host installation and startup: 3000 and meteor information appeared. But as soon as I create a folder called "models" and insert a file named "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 did not 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.tarefas.js (models / tasks.js: 1: 11)       at fileEvaluate (packages / modules-runtime / .npm / package / node_modules / install / install.js: 153: 1)       at 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 .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 \ 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.

    
asked by anonymous 20.10.2016 / 01:04

1 answer

1

Try to use Mongo.Collection, without the 's' at the end.

If you have not resolved yet, I hope it helps!

    
06.12.2016 / 02:05