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

[BUG] variables, functions, etc are not available if splitted into files #39

Open
AhmedNourJamalElDin opened this issue Oct 23, 2019 · 0 comments

Comments

@AhmedNourJamalElDin
Copy link

Hi,
When I split the code into multiple files, this plugin cant recognize them.

How to re-produce:
just take the stepFunctionsOffline to its own file, and reference them in serverless.yml like this:

stepFunctionsOffline: ${file(step-functions-offline.yml)}

How to fix:
don't use the contructor to get data as you do in this code:

this.functions = this.serverless.service.functions;
this.variables = this.serverless.service.custom.stepFunctionsOffline;

in this line.

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

1 participant