Error: Customers is not in the [object global]
at lookup (meteor://💻app/packages/yogiben_admin/lib/both/utils.coffee:22:14)
at adminCollectionObject (meteor://💻app/packages/yogiben_admin/lib/both/utils.coffee:5:3)
at meteor://💻app/packages/yogiben_admin/lib/both/utils.coffee:36:13
at Function._.each._.forEach (meteor://💻app/packages/underscore/underscore.js:113:1)
at adminCreateTables (meteor://💻app/packages/yogiben_admin/lib/both/utils.coffee:36:13)
at __coffeescriptShare (meteor://💻app/packages/yogiben_admin/lib/both/utils.coffee:36:13)
at C:\Users\mbj\Documents\GitHub\QRSMeteor\.meteor\local\build\programs\server\boot.js:304:5
Exited with code: 8
Your application is crashing. Waiting for file change.
You can just make your collections global somewhere - I use a file called admin.js in lib where I also configure the admin, so that it’s all in the same place.
import Customers as _Customers from '../collections/customers' // or whatever
Customers = _Customers // no var, let, const, etc.
I stopped using it, I got the situation that somehow my subscriptions where not active for all pages inside yogiben… sometimes I saw my users, and next 0… (using mongol I check this)
I know this thread is old , but in case might help someone else who has this issue.
Create app_root_directory/lib/admin_config.js
Edit the above file with entries like :
import { Purchased } from ‘/imports/api/models.js’; ( import your collection names)
import { FlowerBatchList } from ‘/imports/api/models.js’;