Encountering setup or runtime issues while contributing to ReactPlay documentation? Here are solutions to the most common problems faced by the community.
If running pnpm install fails with errors:
-
Ensure Node.js (version 14+) and pnpm are installed. Run:
node -v pnpm -v -
Delete
node_modulesand the lock file, then install again:rm -rf node_modules pnpm-lock.yaml pnpm install -
If you see permission errors (EACCES), try using a Node version manager like nvm:
nvm install --lts nvm use --lts pnpm install -
Ensure you are in the correct directory (where
package.jsonis present). -
If using a company proxy or firewall, configure pnpm proxies:
pnpm config set proxy http://proxy.company.com:8080 pnpm config set https-proxy http://proxy.company.com:8080
While running pnpm start, you may see red or yellow messages.
-
Dependency warnings: Most yellow warnings are safe to ignore, but make sure dependencies are up-to-date. Run:
pnpm outdated pnpm update -
Breaking errors (e.g., "module not found"):
-
Check if all dependencies are installed:
pnpm install -
Verify your Node.js version matches project requirements.
-
Try clearing the cache:
pnpm store prune
-
-
Custom errors in documentation:
- Double-check changes in
docs/directory. - Make sure no files are missing or misnamed.
- Review the error stack trace for file/line number hints.
- Double-check changes in
If you get the error "Port 3000 is already in use":
-
Stop any other processes using this port:
npx kill-port 3000 -
Change the port with:
PORT=4000 pnpm start
-
Make sure you have forked the repo and are working on your own branch.
-
If you see permission denied errors for git operations, check your SSH key setup with GitHub.
-
Sync your fork with the upstream repository:
git remote add upstream https://github.com/reactplay/docs git fetch upstream git merge upstream/main
-
Run:
pnpm audit fix pnpm install -
Delete and reinstall
node_modulesif issues persist.
If the above solutions do not resolve your problem:
- Copy the complete error message.
- Make sure to mention:
- Steps performed
- OS and Node/pnpm versions
Then open a new issue or ask in the ReactPlay Discord/Community channels for support.
Feel free to contribute additional solutions to this guide as new issues are discovered by the community!
This guide helps contributors quickly resolve frequent problems and encourages a positive contribution experience.