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

[BUG] ESM error in BullMQModule #2705

Closed
EinfachHans opened this issue May 13, 2024 · 3 comments
Closed

[BUG] ESM error in BullMQModule #2705

EinfachHans opened this issue May 13, 2024 · 3 comments
Assignees

Comments

@EinfachHans
Copy link
Contributor

Describe the bug

I just migrated my project to ESM. I get this error atm:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/hans/IdeaProjects/project_name/node_modules/@tsed/bullmq/lib/esm/dispatchers.js' imported from /Users/hans/IdeaProjects/project_name/node_modules/@tsed/bullmq/lib/esm/BullMQModule.js

When i look into @tsed/bullmq/lib/esm/BullMQModule.js, the line 8 is:

import { JobDispatcher } from "./dispatchers.js";

while dispatchers is a folder, containing an index.js, so there is no file called dispatchers.js

To Reproduce

Use the bullmq module in an esm project.

Expected behavior

The import should be correct

Code snippets

No response

Repository URL example

No response

OS

macOS

Node version

20.12.1

Library version

7.69.2

Additional context

No response

@Romakita
Copy link
Collaborator

Romakita commented May 13, 2024

It shouldn't be an issue to fix that ;)

Copy link

🎉 Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective

@Romakita
Copy link
Collaborator

🎉 This issue has been resolved in version 7.69.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants