Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial does not indicate that Vite would store the build in dist instead of build #155

Open
munyanezaarmel opened this issue Jul 31, 2023 · 2 comments
Labels
Not CRA-based App is not based on Create React App

Comments

@munyanezaarmel
Copy link

Explanation: In my case, I was using Vite to create my React app. So by running npm run deploy, vite created a 'dist' folder for the production. But "deploy": "gh-pages -d build" is watching for the build folder. Now gh-pages will look for dist folder before deployment.

I think the docs should be updated as many people are using vite now

@Otcocuka
Copy link

Otcocuka commented Aug 5, 2023

My man, I use vite too and had the same problem. Just solved it
Use "dist" instead of "build" property in package.json
Screenshot 2023-08-05 152604

@ceotrammell
Copy link

ceotrammell commented Nov 8, 2023

My my, I use vite too and had the same problem. Just solved it Use "dist" instead of "build" property in package.json Screenshot 2023-08-05 152604

You are a life saver... this should be noted somewhere in docs or resolved

@gitname gitname added the Not CRA-based App is not based on Create React App label Feb 19, 2024
@gitname gitname changed the title deploy with vite :ENOENT: no such file or directory, stat "" Tutorial does not indicate that Vite would store the build in dist instead of build Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not CRA-based App is not based on Create React App
Projects
None yet
Development

No branches or pull requests

4 participants