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

Can't serverless deploy --function #228

Open
huntedman opened this issue Apr 18, 2021 · 3 comments
Open

Can't serverless deploy --function #228

huntedman opened this issue Apr 18, 2021 · 3 comments

Comments

@huntedman
Copy link

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?

@louisholley
Copy link

+1 happening to us too

@louisholley
Copy link

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

@jblewdv
Copy link

jblewdv commented May 5, 2021

@louisholley installing npm i serverless-webpack@5.3.5 did the trick, thank you so much!

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