hi I have this error WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore): - {"src":"./server.js","use":"@vercel/node"}
The error indicates that the build configuration in the `vercel.json` file defines a source (`"src": "./server.js"`) that does not match any actual source files. It suggests ensuring that the file is not included in `.vercelignore`. To resolve this issue: 1. Check your file paths: Ensure that `server.js` exists in the root directory or the correct path as per your build configuration. If it's in a different directory, update the `src` path accordingly. 2. Check `.vercelignore`: Ensure that `server.js` is not being ignored by `.vercelignore`. If it is listed there, remove it. 3. Verify your `vercel.json`: Make sure the configuration in your `vercel.json` matches the actual file structure and paths. Example of a corrected `vercel.json`: ```json { "builds": [ { "src": "./server.js", "use": "@vercel/node" } ] } ```
bro i have made frontend and backend. i have deployed the backend on vercel and then I deployed my frontend on vercel I am getting cors error because each time Iadd the deployed links they gets changed with the new link . is there any way to connect with you
When i typed vercel, I was asked some questions. One question was "Import from existing project?" and i clicked no by following your instruction. but i have the codebase in github and now is it possible for me to connect with the github repo and avoid vercel --prod to deploy the changes each and everytime?
Error: File /vercel/path1/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist. can you help me. Whatever i do this error haunted me
Thank you bro! it helps me a lot 🙏🙏🙏
Thanks Bro after lots of effort i get the right way to deploy with your video
You're welcome bro!
Thanks Man You Have Solved My Problem GOD Bless You
You're welcome 🤗
Happy to hear 💜
Amen and thanks
hi I have this error
WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .vercelignore):
- {"src":"./server.js","use":"@vercel/node"}
The error indicates that the build configuration in the `vercel.json` file defines a source (`"src": "./server.js"`) that does not match any actual source files. It suggests ensuring that the file is not included in `.vercelignore`.
To resolve this issue:
1. Check your file paths: Ensure that `server.js` exists in the root directory or the correct path as per your build configuration. If it's in a different directory, update the `src` path accordingly.
2. Check `.vercelignore`: Ensure that `server.js` is not being ignored by `.vercelignore`. If it is listed there, remove it.
3. Verify your `vercel.json`: Make sure the configuration in your `vercel.json` matches the actual file structure and paths.
Example of a corrected `vercel.json`:
```json
{
"builds": [
{
"src": "./server.js",
"use": "@vercel/node"
}
]
}
```
@@CodeSplitter thank you, to be honest I didn't expect a response ai appreciate it, I just figured this out as well, ill subscribe to your channel
bro i have made frontend and backend. i have deployed the backend on vercel and then I deployed my frontend on vercel I am getting cors error because each time Iadd the deployed links they gets changed with the new link . is there any way to connect with you
Contact me via engrharis.uetm@gmail.com
Go to your vercel dashboard and get the link from there and whenever you push Changes so use vercel --prod (double dash prod)
Really appreciate the explanation way
Happy to hear that, thank you.
So helpful for me. Thank you so much
You're Welcome dear.
Happy to hear that.
If i change anything in the code how it will update in vercel
You have to type "vercel --prod" every time when you push latest changes to vercel
And it is told in video already. Kindly watch video again if you are still confused.
Thank you. It helped so much.
Happy to hear that!
You're welcome.
When i typed vercel, I was asked some questions. One question was "Import from existing project?" and i clicked no by following your instruction. but i have the codebase in github and now is it possible for me to connect with the github repo and avoid vercel --prod to deploy the changes each and everytime?
Yes but for that you have to connect with GitHub from vercel
what about the environment variables?
You can add there as well in vercel but if you push it along so it work also.
Do we have to upload the vercel.json file to git hubrepo
Yes but it's directly deployment and has no connection with git.
Great video! Will my backend be always accessible at all time?
Yes
I get the Error: The package `@vecel/node` is not published on the npm registry. Do you know why?
Delete node modules and then try install again and see
it say "500: INTERNAL_SERVER_ERROR" how should i fix. Help me please.
Code was running smoothly on localhost?
If so, then follow the exactly 3 steps mentioned in video and you would be able to deploy correct
@@CodeSplitter yes
Nice One
Thank you
i have no file sever.json in my node.js project
i am using tyepscript so which will be the file?
Look for either server.ts, index.ts or app.ts
ts / tsx
I get 404 file not found error
Make sure to follow those three steps mentioned in video.
Getting 500 error of serverless function crashed
Make sure you uploaded the correct vercel.json file
And correctly followed that 3 steps
@@CodeSplitter already followed all steps still not working
Currently i had successfully deployed same project in render
@@amitvarotaria2683 then it shouldn't throw such an error. BTW good to done with render.
@@amitvarotaria2683 same case with me on vercel im getting server timeout error
Thank you!
You're welcome!
says "vercel" is not a command
Make sure you installed vercel
npm install -g vercel
@@CodeSplitter I already do that but keeps showing error
@@ZabalaX make sure you are using CMD not PowerShell
Thank you.
You're Welcome dear.
is it free ?
Yes
Error: File /vercel/path1/node_modules/transformers/node_modules/uglify-js/tools/exports.js does not exist.
can you help me. Whatever i do this error haunted me
Make use that you are using latest dependences.
I never got this error
Try delete project from vercel and uninstall deps and then run npm install/ yarn add
And make sure to follow that 3 steps correctly
gracias
Thank you!