meteor 0.9.1 , Mongo is not defined inside my custom Package

前端 未结 2 1080
执念已碎
执念已碎 2021-01-21 05:26

Getting Exception Mongo is not defined inside my custom Package

CODE

ABC = new Mongo.Collection(\'ABC\');

ERROR

W20         


        
相关标签:
2条回答
  • 2021-01-21 06:12

    Also check that you have space on your HD, That was my problem.

    0 讨论(0)
  • 2021-01-21 06:13

    You need to list all the packages you use in your package.js file:

    Package.onUse(function (api) {
      api.use('mongo', ['client', 'server']);
      ...
    });
    
    0 讨论(0)
提交回复
热议问题