Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM build contains __dirname references #2288

Closed
AndriyAntonenko opened this issue Nov 20, 2023 · 0 comments
Closed

ESM build contains __dirname references #2288

AndriyAntonenko opened this issue Nov 20, 2023 · 0 comments

Comments

@AndriyAntonenko
Copy link

I am trying to use bullmq worker in my application. My application have limitation, that build artifact should be only ESM module. When I am running my application it failed cause Worker class using __dirname global variable. Is it possible to make fix and use import.meta.url or smth like that?

github-actions bot pushed a commit that referenced this issue Nov 27, 2023
## [4.14.3](v4.14.2...v4.14.3) (2023-11-27)

### Bug Fixes

* **update-progress:** remove old updateProgress script to prevent conflict ([#2298](#2298)) (python) ([e65b819](e65b819))
* **worker:** get dirname by using module.filename ([#2296](#2296)) fixes [#2288](#2288) ([6e4db5a](6e4db5a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant