serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.31k stars 181 forks source link

Error when deploy on Bitbucket #1041

Open vtr-rivia opened 2 years ago

vtr-rivia commented 2 years ago

Description

I've tried to deploy website component using BitBucket Pipelines but I've gotten an error

Here is my output with SLS_DEBUG=* flag

Deploying... Creating or updating the meta IAM Role... Meta IAM Role created or updated with ARN arn:aws:iam::xxxxxxx:role/aplcmi-frontend-meta-role Deploying Bucket dev-aplcmi-frontend to region us-east-1 Checking if bucket dev-aplcmi-frontend exists. Deploying Website Uploading Website files Error: ENOENT: no such file or directory, scandir '/tmp/q1s61hj' at Object.readdirSync (fs.js:955:3) at klawSync (/var/task/node_modules/klaw-sync/klaw-sync.js:13:25) at items (/var/task/utils.js:211:15) at new Promise () at uploadDir (/var/task/utils.js:209:23) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Website.deploy (/var/task/serverless.js:94:7) at async Runtime.module.exports [as handler] (/opt/nodejs/node_modules/@serverless/core/handler.js:337:24) 13s › Serverless › ENOENT: no such file or directory, scandir '/tmp/q1s61hj'