-
Notifications
You must be signed in to change notification settings - Fork 11
RightOn Central Dev Setup
Zach Thomas edited this page Dec 22, 2022
·
1 revision
- Checkout the
dev
branch and rungit pull
- In Networking
src
folder make sure there is anaws-exports.js
file (if not check to see if one was sent out via slack) -
cd
into thenetworking
folder - run
npm install -g
(mac users might need to runsudo npm install -g
due to user permissions androot
owning it instead of theuser
) You may see some peer dependency conflicts - in that case runsudo npm install -g --force
- run
npm install
- run
npm run build
- then
npm link
-
cd
out of thenetworking
folder thencd
into theweb
folder - run
npm link @righton/networking
(if you are facing some dependency issues, runnpm link @righton/networking --legacy-peer-deps
) - then
npm install
(if you are facing some dependency issues, runnpm install --legacy-peer-deps
) - run
npm start
(this should bring up RightOn Central)
Currently, there is an Amplify AuthError for some people which does not load any of the data from AWS (such as the array of games) however a fix is currently being worked on and will be added to the steps here once identified.
If you are facing an error like the one above, try using this GitHub Issue comment and thread to solve it: https://github.com/facebook/create-react-app/issues/11810#issuecomment-1004750642. Also adding this line into the
package.json
file may help to solve this if it is not already in there: "resolutions": { "react-refresh": "^0.12.0" }
If you are facing some dependency issues like the one above, try using these Slack threads to solve it:
- https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages
- https://stackoverflow.com/questions/66239691/what-does-npm-install-legacy-peer-deps-do-exactly-when-is-it-recommended-wh
If you are facing an AuthError issue like the one above, try...