SEQAQ / qaq-react

💡 QAQ Frontend: A university QA community
https://www.uniqaq.tk
2 stars 0 forks source link

fix: change npm into yarn #2

Closed HaoYuan-Hu closed 4 years ago

SeanChao commented 4 years ago

It seems that node-fetch is developed for nodejs, and require is not a react api. I'm working on changing the request lib to axios

netlify[bot] commented 4 years ago

Deploy preview for qaq-react ready!

Built with commit 3f4560b267c71621cb3ae98d3f1b20c92a36ddb2

https://deploy-preview-2--qaq-react.netlify.app

SeanChao commented 4 years ago

In dependencies, node-fetch and config are intended for pure Node.js apps (usage of require) so we cant' use them in the React app. I fixed them all.

Note there are still some linting errors.