Installing rimraf with bun throw "Named export 'GLOBSTAR' not found."
slogive opened this issue · 1 comments
slogive commented
import { GLOBSTAR } from 'minimatch';
^^^^^^^^
SyntaxError: Named export 'GLOBSTAR' not found. The requested module 'minimatch' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'minimatch';
const { GLOBSTAR } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
Node.js v20.14.0
Bun v1.1.11
Windows 11
Arch x64
rimraf v5.0.7
isaacs commented
Minimatch is a hybrid module. You must be getting an outdated version served to glob. Package manager bug.