rphlmr / react-router-hono-server

Remix with Hono in less than 30 seconds
MIT License
43 stars 1 forks source link

MAC OS Environment issue #7

Closed sajidali2444 closed 4 days ago

sajidali2444 commented 2 weeks ago

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"

rphlmr commented 2 weeks 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?

rphlmr commented 2 weeks ago

@AlemTuzlak did you encounter this issue with your package template?

sajidali2444 commented 2 weeks ago

I just cloned @AlemTuzlak repository as it. and I am using yarn package manager. node version 22.6.0 here is this screenshot

image

I also remove package-lock file and yarn.lock file along with node_modules directory. same error again

sajidali2444 commented 2 weeks ago

now it is installed using npm i and it works but does not work with a yarn package manager.

AlemTuzlak commented 2 weeks ago

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.