You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: I am getting this error TypeError: Bree is not a constructor.
The script is below , I searched online but I did not get any useful solutions
const Bree = require('bree')
I did it already and I was getting another error
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, stat 'C:\Users\Davide\Desktop\Lyrics Bites\mern\Lyrics-bites-backend-v2\jobs'] {
errno: -4058,
code: 'ENOENT',
syscall: 'stat',
path: 'C:\Users\Davide\Desktop\Lyrics Bites\mern\Lyrics-bites-backend-v2\jobs'
}
Describe the bug
Node.js version: Node v18.7.0
OS version: Windows 10
Description: I am getting this error TypeError: Bree is not a constructor.
The script is below , I searched online but I did not get any useful solutions
Code to reproduce
`
const { Bree } = require("bree");
const bree = new Bree({
jobs: [
{
name: 'sendVerseEmails',
interval: '1 minute',
worker: async () => {
// get songs with verses
const songs = await SplittedLyrics.find({ verses: { $exists: true } });
],
});
`
Checklist
The text was updated successfully, but these errors were encountered: