...
Prisma keeps giving me strange bugs/I don't understand it, how do I learn more?
Probably Whenever a new migration is added to the develop branch on GitHub and you pull it, your computer hasn’t run the migration yet so you’re out of sync with what the code is doing and what your database can do. To fix this, run
yarn prisma:reset
to reset your database and run all the migrations. To learn more about the Prisma commands, see the below linkCheck out the Software Prisma FAQ
There is a lot of useful information in the prisma docs! Specifically, the environment files docs and the database URL formatting docs.
...
Try restarting your CLI first (in VS Code this means hitting the little trash can icon to the right of "powershell" and then going to "Terminal" on the top of your screen and clicking "New Terminal"). If that doesn't work, try
yarn install
again and then restart your CLI. If psql is the problem and restarting or the other commands don't work, try using "pgAdmin" instead. Finally, the path variables for that package may not have been set up correctly. For this, google the package name followed by "path variable" to find a solution (each package is slightly different). If you’re on Windows and yarn is not recognized as an internal or external command and you have already tried restarting your terminal, typenpm config get prefix
and save the output. On the start search, type in ‘env’ and click on ‘Edit the system environment variables’. Click environment variables, edit the Path variable, and add the output you previously saved. Restart any open terminal and try using yarn again.
Node threw <insert any error here>! What should I do?
...
Yarn is our new package manager and is replacing npm. This means you should never run
npm install
or anynpm run ...
command. Now it is alwaysyarn install
oryarn ...
(no need forrun
keyword at all). Yarn is a lot faster (install times <5 seconds if you already have everything and are just updating) and also doesn’t change thepackage-lock.json
every time which is nice.
General FAQs
My prettier isn’t working, but only on Github?
Run this command in your CLI: npx prettier --write file_path
What does XXX mean?
Please navigate to the glossary page to find some of the common confusing terms that we use regularly! If there’s anything not on there, feel free to reach out to any of us about it (and let us know if you think it should be added)!