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:
- pnpm
- Astro
- Preact integration (with
compat: true)
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.jsonI've tried the following steps to see if I could resolve it by myself:
- Using
"overrides"in thepackage.jsonto override the"react"packages like this:
"overrides": {
"react": "npm:@preact/compat@latest",
"react-dom": "npm:@preact/compat@latest"
}- Using
overridesin thepnpm-workspace.yamlto override the"react"packages like this:
overrides:
react: "npm:@preact/compat@latest"
react-dom: "npm:@preact/compat@latest"- Setting the
vite.ssr.noExternaloption inastro.config.mjsto 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.