Design comparison
Solution retrospective
Hi I have problem setting the app for GitHub pages. When I run npm run deploy ("deploy": "gh-pages -d build") it says this Error: The pattern in the "src" property didn't match any files. at Object.publish (/Users/patrikholler/workspace/age-calculator-app-main/node_modules/gh-pages/lib/index.js:111:7) at /Users/patrikholler/workspace/age-calculator-app-main/node_modules/gh-pages/bin/gh-pages.js:12:13 at new Promise (<anonymous>) at publish (/Users/patrikholler/workspace/age-calculator-app-main/node_modules/gh-pages/bin/gh-pages.js:10:10) at /Users/patrikholler/workspace/age-calculator-app-main/node_modules/gh-pages/bin/gh-pages.js:140:12
Community feedback
- @Bishalsnghd07Posted 9 months ago
Hi, @hollepat 👋
I would say never follow this method, it will only create panic for you. GitHub is only use for track and save your local repository into it, by any chance if you delete your local repository from your pc, then from GitHub you can clone this repo and reuse it for this role GitHub is used for not for deployment.
For deployment I would recommend use netlify or vercel for free and it is hassle-free also.
Hope, this suggestion will help you out!
If, still have problem then feel free to ping me here😊
Happy Coding ❤️
Marked as helpful0 - @GioKhabuPosted 9 months ago
Hello Patrik,
Try to follow these steps: https://github.com/gitname/react-gh-pages
I use it as a guideline every time I want to deploy React on GitHub.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord