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

Not compatible with serverless version 3 #43

Open
awgrass opened this issue Jul 23, 2022 · 5 comments
Open

Not compatible with serverless version 3 #43

awgrass opened this issue Jul 23, 2022 · 5 comments

Comments

@awgrass
Copy link

awgrass commented Jul 23, 2022

Hi guys,

I was trying to use your plugin with serverless framework version 3. It seems that there was some breaking change that broke the plugin. The error I got was the following:

serverless sam export --output ./sam-template.yml
Running "serverless" from node_modules
Working folder: /home/alex/Git/MyProjects/serverless/food/node_modules/serverless-sam
Validate
Preparing original CloudFormation template
Environment: linux, node 12.18.2, framework 3.21.0 (local) 3.21.0v (global), plugin 6.2.2, SDK 4.3.2
Credentials: Local, "default" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
TypeError: this.serverless.variables.populateService is not a function
    at SamPlugin.prepareTemplate (/home/alex/Git/MyProjects/serverless/food/node_modules/serverless-sam/index.js:154:31)
    at SamPlugin.tryCatcher (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromiseCtx (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/promise.js:641:10)
    at _drainQueueStep (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/async.js:97:12)
    at _drainQueue (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/alex/Git/MyProjects/serverless/food/node_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:456:21)
    at process.topLevelDomainCallback (domain.js:137:15)

After fiddeling a little bit around I tried to use it with the latest version of serverless 2 (2.72.3) and it seems to work there.

I checked the serverless-sam files and it seems that the serverless framework is not populating the variable "populateService" any more. As the error suggests, it does not exist.

Did I overlook something or is there simply no support for version 3 of serverless?

@Geaper
Copy link

Geaper commented Mar 9, 2023

same here. does not work for v3

@wwells-apixio
Copy link

Yup, no worky

@d-guedes
Copy link

Same error here

@rbpimenta
Copy link

+1 Don't work for "serverless": "3.38.0"

@bhalani97
Copy link

Is there any update on this issue ?

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

6 participants