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

.vercelignore not ignoring files in build output #8571

Closed
dpcdev1999 opened this issue Sep 16, 2022 · 2 comments
Closed

.vercelignore not ignoring files in build output #8571

dpcdev1999 opened this issue Sep 16, 2022 · 2 comments

Comments

@dpcdev1999
Copy link

Vercel CLI Version: 28.2.5
Platform: OSX

I am building and deploying my vercel app using the following commands...
npx vercel build
npx vercel deploy --prebuilt

Building works but deploying is failing with an error:
Invalid request: files should NOT have more than 15000 items, received 18960.

I investigated the build artifacts output in .vercel/output and discovered that node_modules were being included within the functions directory. I removed the node_modules and then then ran vercel deploy again and it worked.

Now that I know the issue is having the node_modules in my .vercel/output directory, I'm stuck because the .vercelignore doesn't seem to be doing the trick.

I am positive that the .vercelignore file is in my root directory. I have even tried ignoring all files with it. No matter what, vercel CLI tries to deploy every file to Vercel without excluding anything.

Here is what my .vercelignore file looks like:

.vercelignore
node-modules

Is there something obvious I am missing anyone can point out ? Or could there be a bug with .vercelignore ?

Thank you!

@GiancarlosIO
Copy link

I'm getting the same issue #8643 😢

@swarnava
Copy link
Member

Hi @dpcdev1999, can you try vercel deploy --prebuilt --archive=tgz and let us know how it goes?

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

3 participants