Closed suhaotian closed 8 months ago
I fixed it in 5.0.1! please upgrade to the new version 🙏
Thanks fix the issue, now it's working!
And found a small issue:
This will not generate ./dist/index.esm.js
:
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"module": "./dist/index.esm.js"
},
}
So I change to:
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"module": "./dist/index.mjs"
},
}
and will generate dist/index.esm.js
I’m confused, is module field generating .esm.js even when it’s specified as generating .mjs? Do you mind creating another issue and we can have repro and discussion there? Thanks!
Now it's working, after I did these change in package.json
:
Try update to v5 for xior,
first warning:
Then solved by add
type: module
to package.jsonSecond:
only exports one entry, but I have many entries in
exports
:exports: