'Can't deploy React App on heroku, don't understand why?
Here's what Heroku says when I try to deploy:
Module not found: Error: Can't resolve 'sweetalert2' in '/tmp/build_477bb6c3/src/components/Funditron'
----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
I love you too Heroku but what else do you want from me! :D
Solution 1:[1]
While I'm not against heroku, I'd strongly suggest netlify. I mean that what almost all react developers use. It's very simple to use, try it out ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Samuel Lucas |
