Skip to content

[Bug]: Failed to identifiy module type #2083

@Boshen

Description

@Boshen

Reproduction link or steps

I'm testing rolldown in https://github.com/oxc-project/monitor-oxc

pnpm install
pnpm run rolldown

What is expected?

No error

What is actually happening?

 ERROR  Rolldown internal error: "/Users/boshen/oxc/monitor-oxc/node_modules/.pnpm/es5-ext@0.10.64/node_modules/es5-ext/string/#/contains/index.js" is not specified module type,  rolldown can't handle this asset correctly. Please use the load/transform hook to transform the resource

The file:

"use strict";
module.exports = require("./is-implemented")() ? String.prototype.contains : require("./shim");

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions