bug: Failed to resolve entry for package

did:plc:7tgvmrnxdj7q2tr7iemkikdv opened this Oct 14, 2025 0 comments
did:plc:7tgvmrnxdj7q2tr7iemkikdv opened Oct 14, 2025

Hi, thanks for making this, it's saving my life.

But also, I'm struggling to update to the latest version (0.4.0 I think?). This is my setup:

When I update to the latest version, I keep running into an error that says:

Failed to resolve entry for package "atproto-ui". The package may have incorrect main/module/exports specified in its package.json

I've tried the following steps to see if I could resolve it by myself:

  • Using "overrides" in the package.json to override the "react" packages like this:
"overrides": {
  "react": "npm:@preact/compat@latest",
  "react-dom": "npm:@preact/compat@latest"
}
  • Using overrides in the pnpm-workspace.yaml to override the "react" packages like this:
overrides:
  react: "npm:@preact/compat@latest"
  react-dom: "npm:@preact/compat@latest"
  • Setting the vite.ssr.noExternal option in astro.config.mjs to include "atproto-ui"
vite: {
  ssr: {
    noExternal: ["atproto-ui"],
  },
}
  • Installing the React integration and setting that as the default

None of these options seemed to work? I tried looking at the package.json for atproto-ui too but I couldn't find anything odd? Not sure what happened... :/

No activity yet.

cospan · schematic version control on atproto built on AT Protocol