-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cannot run command successfully. Cannot read Property 'value' of undefined #83
Comments
It should asked you to update the template. I'll check.
Saw the problem. Fix on the way |
:) |
Fixed in Thanks for the report |
Let me know if you encounter any other problem or if you have some suggestions to share. 🌷 |
Here is my full output. Now with a new error. I still wasn't able to specify the same answers. Notice the repo organization is 'it@github.com:neekers' missing a g from 'git'. Let's quickly setup the template... events.js:141 ReferenceError: devPackage is not defined |
Sorry, just notice it through travis. |
This time the test passed. In my local dev environment, I have the template already defined and have not have time to work on those test cases. Sorry for the inconvenience. |
Fixing one more issue. |
@neekers Now it should be working. The issue you have was due to change in When I update to use it, the |
|
It should look something like this: Welcome to the beta! Let me know if my questions make sense to you.
Now, let's get started...
_-----_
| | .--------------------------.
|--(o)--| | Welcome to the |
`---------´ | sensational typings |
( _´U`_ ) | generator! |
/___A___\ '--------------------------'
| ~ |
__'.___.'__
´ ` |° ´ Y `
Seems like this is the first time you use this generator.
Let's quickly setup the template...
? Your username on GitHub unional
? https://github.com/<organization>/typed-* unional
? https://github.com/unional/typed-* typed-
? Your test framework of choice blue-tape
? Your browser test harness tape-run + jspm
? Which license do you want to use? MIT
? Your signature in the license: Copyright (c) 2016 <signature> unional
Got it! The template is saved.
I'll be creating the typings repository under the current folder
To begin, I need to know a little bit about the source you are typings for.
? Where can I get it from? NPM
? npm install <package name>? nop
gathering info from npm...
? How can the package be used? (Press <space> to select)CommonJS Module
? Where can the package be used? (Press <space> to select)Native NodeJS
Good, now about the typings itself...
Based on your configured template, ...
repository: typings/x
Github username: unional
license: MIT
license signature: unional
test framework: blue-tape
? Does it look good to you? Yes
Overal props for debug purpose:
{ repositoryName: 'x',
repositoryOrganization: 'typings',
username: 'unional',
name: 'Homa Wong',
email: 'homawong@gmail.com',
sourceDeliveryType: 'npm',
sourceDeliveryPackageName: 'nop',
sourceUsages: [ 'commonjs' ],
sourceMain: 'index',
sourceVersion: '1.0.0',
sourceHomepage: 'https://github.com/supershabam/nop',
sourceRepository: 'git://github.com/supershabam/nop',
sourcePlatforms: [ 'node' ],
usePresetValues: true,
repositoryRemoteUrl: 'https://github.com/typings/x.git',
license: 'MIT',
licenseSignature: 'unional',
testFramework: 'blue-tape',
devDependencies:
[ 'onchange',
'typings',
'ts-node',
'tslint',
'tslint-config-typings',
'tap-spec',
'blue-tape' ],
typingsDevDependencies: [ 'registry:npm/blue-tape' ],
typingsGlobalDevDependencies: [ 'registry:env/node' ] }
create package.json
create tsconfig.json
create tslint.json
create .editorconfig
create .travis.yml
create .gitignore
create typings.json
create README.md
create index.d.ts
create LICENSE
create source-test/README.md
create source-test/tsconfig.json
create test/tsconfig.json
create test/test.ts
Installing nop... |
Tried to run it "yo typings:beta", but it won't let me put in my github username and then it fails. Looks like it skips a couple prompts, this one and the organization.
readline.js:925
throw err;
^
TypeError: Cannot read property 'value' of undefined
at Prompt.getCurrentValue (/usr/local/lib/node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/lib/prompts/list.js:121:51)
at tryCatcher (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:63:31)
at InnerObserver.next (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:5407:43)
at InnerObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:1762:31)
at InnerObserver.tryCatcher (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:63:31)
at AutoDetachObserverPrototype.next (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:5883:51)
at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:1762:31)
at Subject.Rx.Subject.addProperties.onNext (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:5998:19)
at Subject.tryCatcher (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:63:31)
at AutoDetachObserverPrototype.next (/usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:5883:51)
Help appreciated!
Thanks
The text was updated successfully, but these errors were encountered: