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

t2 init -i will throw an error #771

Closed
johnnyman727 opened this issue Jun 16, 2016 · 0 comments · Fixed by #1086
Closed

t2 init -i will throw an error #771

johnnyman727 opened this issue Jun 16, 2016 · 0 comments · Fixed by #1086

Comments

@johnnyman727
Copy link
Contributor

The interactive option for initializing a JavaScript project (t2 init -i) throws an error:

➜  t2-demo t2 init -i
INFO Initializing new Tessel project for JavaScript...
INFO Created package.json.
ERR! [TypeError: Cannot read property 'trim' of undefined]

The error is being thrown by this line. Adding another check for a falsy value of d allows you to interactively create a package.json but the spinner awkwardly blocks the text being typed.

The fix for this bug would be to fix that check on d and fix the spinner blocking stdin text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants