Bug
The published @fedify/astro 2.1.5 package has incorrect exports in package.json. The entries point to files that do not exist in the package.
Current package.json exports
"module": "./dist/mod.js",
"types": "./dist/mod.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/mod.d.ts",
"default": "./dist/mod.js"
}
}
}
Actual files in dist/
mod.cjs
mod.d.cts
mod.d.mts
mod.mjs
mod.js and mod.d.ts do not exist.
Error
Failed to resolve entry for package "@fedify/astro". The package may have incorrect main/module/exports specified in its package.json.
Fix
Update package.json to reference the correct files:
"module": "./dist/mod.mjs",
"types": "./dist/mod.d.mts",
"exports": {
".": {
"import": {
"types": "./dist/mod.d.mts",
"default": "./dist/mod.mjs"
}
}
}
Bug
The published
@fedify/astro2.1.5 package has incorrectexportsinpackage.json. The entries point to files that do not exist in the package.Current
package.jsonexportsActual files in
dist/mod.jsandmod.d.tsdo not exist.Error
Fix
Update
package.jsonto reference the correct files: