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.json
I'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... :/
sorry about this, it should be fixed now with atproto-ui@0.5.3-1 (note i did some refactoring and you shouldnt need to input a colorscheme anymore)