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

basic #5

Open
srujnil opened this issue Feb 12, 2024 · 7 comments
Open

basic #5

srujnil opened this issue Feb 12, 2024 · 7 comments

Comments

@srujnil
Copy link

srujnil commented Feb 12, 2024

hey just need a small help,
How do I edit the code to change the website name , message etc?

@devCKVargas
Copy link

Fork and ticker with App.tsx and index.html

@Whythme
Copy link

Whythme commented Feb 14, 2024

1.cloned the project to my vs code
2.changed the package.json>homepage link to my name
3.changed few fields from app.tsx
4.saved the project
5.when i tried to get started with npm install -g pnpm, my vscode terminal states "'npm' is not recognized as an internal or external command".

looked around and didnt got any lead. Is this known issue ?

@devCKVargas
Copy link

1.cloned the project to my vs code
2.changed the package.json>homepage link to my name
3.changed few fields from app.tsx
4.saved the project
5.when i tried to get started with npm install -g pnpm, my vscode terminal states "'npm' is not recognized as an internal or external command".

looked around and didnt got any lead. Is this known issue ?

Install Node.js

@Whythme
Copy link

Whythme commented Feb 14, 2024

1.cloned the project to my vs code
2.changed the package.json>homepage link to my name
3.changed few fields from app.tsx
4.saved the project
5.when i tried to get started with npm install -g pnpm, my vscode terminal states "'npm' is not recognized as an internal or external command".

looked around and didnt got any lead. Is this known issue ?

Install Node.js

npm got sorted out, thanks for quick reflex mate.
there is this new error now after pnpm run deploy> failed to get remote.origin.url
what need to be done?

@devCKVargas
Copy link

devCKVargas commented Feb 14, 2024

@Whythme I just match the name, homepage in package.json and base in vite.config.ts.
I think I ignored that error and runpnpm run deploy and wait for gh-pages to deploy and it's good to go.

You can try to check my commit on my fork for reference.

@danurrr
Copy link

danurrr commented Feb 19, 2024

Hi @devCKVargas , could you help to fix this error?

# pnpm run deploy

> [email protected] deploy /var/www/html
> vite build && gh-pages -d dist

vite v5.1.1 building for production...
src/App.tsx (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
✓ 31 modules transformed.
dist/index.html                   0.51 kB │ gzip:  0.31 kB
dist/assets/index-Clsg0WI4.css    5.41 kB │ gzip:  1.68 kB
dist/assets/index-XogpA_Ca.js   144.01 kB │ gzip: 46.51 kB
✓ built in 3.08s
ProcessError: fatal: attempt to fetch/clone from a shallow repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

    at ChildProcess.<anonymous> (/var/www/html/node_modules/.pnpm/[email protected]/node_modules/gh-pages/lib/git.js:42:16)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Socket.<anonymous> (node:internal/child_process:458:11)
    at Socket.emit (node:events:513:28)
    at Pipe.<anonymous> (node:net:301:12)
 ELIFECYCLE  Command failed with exit code 1.

@devCKVargas
Copy link

devCKVargas commented Feb 23, 2024

@danurrr hello, sorry for the late reply.
Here are the files you'd need to edit to make it work:

  • package.json
  • vite.config.ts

This is based on your fork repo URL on your profile.

  1. In package.json make sure that "homepage" URL matches your fork's. (Use my fork as your reference)
  2. Make sure to replace be-my-valentine with your repo's name, in your case it's valentine in base on vite.config.ts (be mindful of the / at the very start)

Also need to change and make sure you've set to push on your own fork's remote repo URL.

Do git remote set-url origin https://github.com/danurrr/valentine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants