You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When packaging or deploying it fails to find serverless. I replicated the issue with latest versions of serverless-webpack. If I revert 1 version behind the latest 5.7.0 to 5.6.1 it builds fine with the dependencies I have installed.
For bug reports:
What went wrong?
When running yarn sls package - or deployment doesn't matter - I receive this error.
TypeError: Cannot read property 'serverless' of undefined
at /../../node_modules/serverless-webpack/lib/packageModules.js:102:22
What did you expect should have happened?
Build my project
What stacktrace or error message from your provider did you see?
Error:
TypeError: Cannot read property 'serverless' of undefined
at /../../my-project/node_modules/serverless-webpack/lib/packageModules.js:102:22
at tryCatcher (/../../my-project/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/../../my-project/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/../../my-project/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/../../my-project/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/../../my-project/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/../../my-project/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/../../my-project/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/../../my-project/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/../../my-project/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:464:21)
error Command failed with exit code 1.
Additional Data
Serverless-Webpack Version you're using: 5.7.0
Webpack version you're using: 5.72.0
Serverless Framework Version you're using: 3.15.2
Operating System: M1 Mac Monterey 12.3.1
The text was updated successfully, but these errors were encountered:
This seems to happen when a file can be found during the zip process.
I've a fix ready but maybe it'll raise an other issue on your side because of that missing file.
Once my PR is open, it'll be great in you test it to check your project before release the patch version.
This is a Bug Report
Description
When packaging or deploying it fails to find serverless. I replicated the issue with latest versions of serverless-webpack. If I revert 1 version behind the latest 5.7.0 to 5.6.1 it builds fine with the dependencies I have installed.
For bug reports:
When running
yarn sls package
- or deployment doesn't matter - I receive this error.Build my project
Additional Data
The text was updated successfully, but these errors were encountered: