TypeError: JobCollection is not a function

Hello after i update for meteor 1.9 i have this message TypeError: JobCollection is not a function.
i try to install vsivsi:job-collection but don’t work, someone knows another lib for fix this issue?

Please provide more details, code example

this is the issue, i just update my version of Meteor, so when a try to run, i had this message

C:\Users\FabioLimaOliveira\AppData\Local.meteor\packages\meteor-tool\1.9.0\mt-os.windows.x86_64\dev_bundle\server-lib\node_modules\fibers\future.js:280
W20200213-16:16:31.510(-3)? (STDERR) throw(ex);
W20200213-16:16:31.529(-3)? (STDERR) ^
W20200213-16:16:31.551(-3)? (STDERR)
W20200213-16:16:31.559(-3)? (STDERR) ReferenceError: CollectionFS is not defined
W20200213-16:16:31.580(-3)? (STDERR) at module (lib/collections/schedule_executed_jobs.js:3:30)
W20200213-16:16:31.584(-3)? (STDERR) at fileEvaluate (packages\modules-runtime.js:336:7)
W20200213-16:16:31.586(-3)? (STDERR) at Module.require (packages\modules-runtime.js:238:14)
W20200213-16:16:31.588(-3)? (STDERR) at Module.moduleLink [as link] (C:\Users\FabioLimaOliveira\AppData\Local.meteor\packages\modules\0.15.0\npm\node_modules\reify\lib\runtime\index.js:52:22)
W20200213-16:16:31.590(-3)? (STDERR) at module (lib/collections/index.js:1:575)
W20200213-16:16:31.593(-3)? (STDERR) at fileEvaluate (packages\modules-runtime.js:336:7)
W20200213-16:16:31.595(-3)? (STDERR) at Module.require (packages\modules-runtime.js:238:14)
W20200213-16:16:31.597(-3)? (STDERR) at Module.moduleLink [as link] (C:\Users\FabioLimaOliveira\AppData\Local.meteor\packages\modules\0.15.0\npm\node_modules\reify\lib\runtime\index.js:52:22)
W20200213-16:16:31.604(-3)? (STDERR) at module (server/publications/notifications.js:1:26)
W20200213-16:16:31.607(-3)? (STDERR) at fileEvaluate (packages\modules-runtime.js:336:7)
W20200213-16:16:31.611(-3)? (STDERR) at Module.require (packages\modules-runtime.js:238:14)
W20200213-16:16:31.616(-3)? (STDERR) at Module.moduleLink [as link] (C:\Users\FabioLimaOliveira\AppData\Local.meteor\packages\modules\0.15.0\npm\node_modules\reify\lib\runtime\index.js:52:22)
W20200213-16:16:31.623(-3)? (STDERR) at module (server/publications/index.js:1:83)
W20200213-16:16:31.626(-3)? (STDERR) at fileEvaluate (packages\modules-runtime.js:336:7)
W20200213-16:16:31.629(-3)? (STDERR) at Module.require (packages\modules-runtime.js:238:14)
W20200213-16:16:31.631(-3)? (STDERR) at Module.moduleLink [as link] (C:\Users\FabioLimaOliveira\AppData\Local.meteor\packages\modules\0.15.0\npm\node_modules\reify\lib\runtime\index.js:52:22)

this is my code.

import { Mongo } from ‘meteor/mongo’;

const ScheduleExecutedJobs = JobCollection(‘scheduleExecuted’);

export default ScheduleExecutedJobs;

I think this error tells you exactly where to look. Seems CollectionFS is not defined?

I think maybe it is, but i aways use on this form, this error appear after upda for meteor 1.9

this is my code.

import { Mongo } from ‘meteor/mongo’;

const ScheduleExecutedJobs = JobCollection(‘scheduleExecuted’);

export default ScheduleExecutedJobs;

I don’t believe anybody will be able to help you without more code, particularly where and how JobCollection is defined.

That package isn’t compatible with newer Meteor last time I checked. Try simonsimcity:job-collection instead

I’m sorry for don’t reply before, i will test with this lib today, and post here if work.

this change work, thanks!