Closed sajidali2444 closed 4 days ago
👋 I am on macOS too and never encountered this issue.
I would like to reproduce it. Did you add react-router-hono-server on an existing Remix vite project or a new one?
What package manager do you use?
Can you try to delete your package manager lock file?
@AlemTuzlak did you encounter this issue with your package template?
I just cloned @AlemTuzlak repository as it. and I am using yarn package manager. node version 22.6.0 here is this screenshot
I also remove package-lock file and yarn.lock file along with node_modules directory. same error again
now it is installed using npm i and it works but does not work with a yarn package manager.
Rollup uses your current OS info to install one of like 20 potential rollup OS specific dependencies into the project like the rollup-darwin-x64-gnu one, and if another person tries to install them on an OS different than yours it usually doesn't work, this is especially true with windows/macos and hence why I always add them into optionalDependencies as that is a "hack" for this issue, although this specific one might be related to how yarn resolves these.
I am getting errors while adding react-router-hono-server package using MAC os Couldn't find package "@rollup/rollup-darwin-x64-musl@4.18.1" required by "react-router-hono-server@^0.1.0"