ESModulesLinkingError :( #8309
-
I'm running a standalone app, using rsbuild, which imports other npm packages compiled by rsbuild as well. Latest rspack/rsbuild throws this error:
ESModulesLinkingError? This npm package videomail-client has this in its package.json: "type": "module",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
], See https://www.npmjs.com/package/videomail-client/v/10.0.0-9?activeTab=code @chenjiahan Since you worked on this error message (git blame tells me), I wonder if you can assist and provide a better explanation to why this can't be compiled? If you like, I can provide you with access to my repository for reproduction. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think the error message is quite clear, the For example, try to |
Beta Was this translation helpful? Give feedback.
Note that Rsbuild is not designed to build libraries, you can use Rslib instead.
https://github.com/web-infra-dev/rslib