serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

Can't serverless deploy --function

Open huntedman opened this issue 4 years ago • 3 comments

Running serverless deploy --function MyFunction

Serverless-bundle will try to copy over an unrelated function from .webpack in to .serverless and the following error will be produced

Error: ENOENT: no such file or directory, copyfile '/.webpack/UnrelatedFunction.zip' -> '.serverless/UnrelatedFunction.zip'

I've also disabled ForkTsChecker.

Should I attempt a fix or is there anything I'm missing?

huntedman avatar Apr 18 '21 13:04 huntedman

+1 happening to us too

louisholley avatar Apr 22 '21 08:04 louisholley

@huntedman I think this is an issue with serverless-webpack. to temporarily patch it, I ran npm i [email protected] in our repo and the problem went away

louisholley avatar Apr 22 '21 08:04 louisholley

@louisholley installing npm i [email protected] did the trick, thank you so much!

jblewdv avatar May 05 '21 04:05 jblewdv