Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bull
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 175
    • Issues 175
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OptimalBits
  • bull
  • Issues
  • #1861
Closed
Open
Issue created Sep 16, 2020 by Administrator@rootContributor

Using Bull within ES6 module

Created by: gielow

Description

I have a certain repo configured as a module (type: "module" in package.json). The application works all fine, imports, etc...

While trying to initialize/add the workers I have the following error:

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /some_path/processor-xxxxx.js

Bull version is 3.14.0

Additional information

I setup my processors: queue.process(, </some_path/processor-xxxx.js>);

Is there anything wrong with my project setup?

Assignee
Assign to
Time tracking