DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
kseniyaco profile image
KseniyaCo

Hello. I followed all the instructions, but when I enter npm run deploy I recieve "The "file" argument must be of type string. Received type undefined" error. How to handle this? Thank you

Collapse
 
yuribenjamin profile image
Ibrahim Ragab

Can you double Check the package.json file make sure you set correctly the homepage, predeploy, deploy check commas single quotes or double, if not provide me your repo url and make sure I will help