-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
bugSomething isn't workingSomething isn't workingconfirmed bugWe can reproduce this issueWe can reproduce this issuegood first issueSomething that would be good for new contributorsSomething that would be good for new contributorsnode:module
Description
What version of Bun is running?
1.3.0+b0a6feca5
What platform is your computer?
Linux 6.8.0-85-generic x86_64 x86_64
What steps can reproduce the bug?
- create a file
test.mjswith the following content:
import { findPackageJSON } from 'node:module';
findPackageJSON(import.meta.resolve('lodash'));- run it like
bun test.mjs
What is the expected behavior?
It should give no output, since the above does not throw a SyntaxError in Node.js.
What do you see instead?
SyntaxError: Export named 'findPackageJSON' not found in module 'node:module'.
at loadAndEvaluateModule (2:1)
Additional information
The method findPackageJSON is not tied to any missing feature listed in bun documentation, in regards of node:module.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingconfirmed bugWe can reproduce this issueWe can reproduce this issuegood first issueSomething that would be good for new contributorsSomething that would be good for new contributorsnode:module