Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
This repository was archived by the owner on May 27, 2025. It is now read-only.

Export an ESM (ECMAScript Module) package for rgbpp-sdk #245

Closed
@duanyytop

Description

@duanyytop

Now the rgbpp-sdk only exports CommonJS package, and it will cause a Named Exports issue when developers use ESM to import rgbpp-sdk like this:

"Named export 'Types' not found. The requested module 'mongoose' is a CommonJS module, which may not support all module.exports as named exports"

reference: https://stackoverflow.com/questions/70605320/named-export-types-not-found-the-requested-module-mongoose-is-a-commonjs-mo

To avoid potential issues, it is recommended to export an ESM package for rgbpp-sdk.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions