Skip to content

dholst/bullmq-esm-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of sandboxed esm workers not working in bullmq

Assumes docker is installed for a redis instance

npm i
npm test
> test
> node test.js

require() of ES Module /Users/darrinholst/projects/bullmq-esm-processor/worker.js from /Users/darrinholst/projects/bullmq-esm-processor/node_modules/bullmq/dist/cjs/classes/child-processor.js not supported.
Instead change the require of worker.js in /Users/darrinholst/projects/bullmq-esm-processor/node_modules/bullmq/dist/cjs/classes/child-processor.js to a dynamic import() which is available in all CommonJS modules.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published