Skip to content

@fedify/astro 2.1.5: package.json exports reference non-existent files #699

@sij411

Description

@sij411

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"
    }
  }
}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions