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

One-click Vercel deployment failed #1

Open
chaoscreater opened this issue Jul 12, 2023 · 4 comments
Open

One-click Vercel deployment failed #1

chaoscreater opened this issue Jul 12, 2023 · 4 comments

Comments

@chaoscreater
Copy link

Getting this when I deploy to Vercel from the one-click button on your Github project:

image

@kaarthik108
Copy link
Owner

coffee-script is depreciated, additionally you can add npm i -D request
This should still be able to build fine in vercel

@chaoscreater
Copy link
Author

Sorry, could you please provide a bit more instructions? I'm not a programmer and never used Vercel before, just trying to learn this stuff.

Initially, I simply clicked the Vercel "one-click deploy" button, hoping that everything will be set up in Vercel magically for me. But it doesn't seem like that's enough. If I understand this correctly, I'll need to:

  • Follow the installation steps from 1~8
  • For step 6, I can use this instead npm i -D request

All of this will be done in my own repo, so the Vercel deploy button URL will probably need to be updated right? At the moment, I THINK it's cloning your repo into my own repo, but I don't understand how to modify it.

https://vercel.com/new/clone?repository-url=https://github.com/kaarthik108/snowbrain&project-name=snowbrain&repo-name=snowbrain

I presume I'll need to modify it to this?

https://vercel.com/new/repository-url=https://github.com/chaoscreater/snowbrain&project-name=snowbrain&repo-name=snowbrain

@kaarthik108
Copy link
Owner

I think once you click the deploy button it will take you to vercel and they will create a repo for you mirroring this one. You should be good to go post then by just adding the env and hopefully you had done the other steps like embedding and modal labs

@chaoscreater
Copy link
Author

chaoscreater commented Jul 18, 2023

Sorry, I'm a bit confused.

The issue here is that Vercel can't build the solution because it can't resolve "request". Which means that I need to first run "npm i -D request" like you've suggested. However, that is only run against my local repo. Even if I push my local repo into remote, it will be my own Github repo.

When I click on the Vercel deploy button, it clones your repo into my own repo. This means that whatever changes I make in my local or remote repo, it will never be referenced by Vercel.

See below URL, the deploy Vercel button uses your repo to clone from:
https://vercel.com/new/clone?repository-url=https://github.com/kaarthik108/snowbrain&project-name=snowbrain&repo-name=snowbrain

Would appreciate it if you can give out full instructions. I'm not a programmer and barely able to understand what's going on.

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

2 participants