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

node:module.register does not exist. #11905

Open
aspizu opened this issue Jun 16, 2024 · 2 comments
Open

node:module.register does not exist. #11905

aspizu opened this issue Jun 16, 2024 · 2 comments
Labels
bug Something isn't working node:module

Comments

@aspizu
Copy link

aspizu commented Jun 16, 2024

Bun

1.1.13+bd6a60512

Arch Linux

Linux 6.9.4-2-cachyos x86_64 unknown

Repro

import {register} from "node:module"

register("@mdx-js/node-loader", import.meta.url)

Dependencies

"@mdx-js/node-loader": "^3.0.1"

Error

SyntaxError: Export named 'register' not found in module 'module'.
@aspizu
Copy link
Author

aspizu commented Jun 16, 2024

Github apparently deleted all the info I put in the report, it just says No description provided now.

@ericallam
Copy link

This is needed to support @opentelemetry-js instrumentation using import-in-the-middle

@nektro nektro added bug Something isn't working node:module labels Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node:module
Projects
None yet
Development

No branches or pull requests

3 participants