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

Error when "compile" object without commands, if they are configured #30

Open
sergkudinov opened this issue May 17, 2019 · 0 comments
Open

Comments

@sergkudinov
Copy link
Contributor

If config is:

const app = parameters(
{  options:
  { "config": {} },
  commands:
  { "start": {} } }
)

This programm:

app.compile( { config: "app.yaml" } )

Leads to the error:

TypeError: Cannot read property 'shift' of undefined at compile (../node-parameters/lib/plugins/args.js:290:93)

This works:

app.compile( {
    command: ["start"],
    config: "app.yaml"
  } )
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