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

No variables causes null reference when serving a recipe #12

Closed
JasonPagel opened this issue Jan 29, 2019 · 0 comments
Closed

No variables causes null reference when serving a recipe #12

JasonPagel opened this issue Jan 29, 2019 · 0 comments

Comments

@JasonPagel
Copy link
Collaborator

Creating a recipe without variables causes "Cannot convert undefined or null to object" when serving the recipe.

(node:1948) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object
at Function.keys ()
at BakePackage.objToVariableMap (C:\temp\test\node_modules\azure-bake\dist\bake-loader.js:72:30)
at BakePackage._loadPackage (C:\temp\test\node_modules\azure-bake\dist\bake-loader.js:118:25)
at new BakePackage (C:\temp\test\node_modules\azure-bake\dist\bake-loader.js:20:14)
at C:\temp\test\node_modules\azure-bake\dist\index.js:198:19
at Generator.next ()
at C:\temp\test\node_modules\azure-bake\dist\index.js:8:71
at new Promise ()
at __awaiter (C:\temp\test\node_modules\azure-bake\dist\index.js:4:12)
at run (C:\temp\test\node_modules\azure-bake\dist\index.js:187:12)
(node:1948) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1948) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@whilke whilke closed this as completed in 500b5a7 Jan 31, 2019
whilke added a commit that referenced this issue Jan 31, 2019
fix(system): Fixed #12 - bake.yaml with no variables defined was failing
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