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

CLI Error #846

Closed
Yourdigitalheart opened this issue Sep 10, 2018 · 8 comments
Closed

CLI Error #846

Yourdigitalheart opened this issue Sep 10, 2018 · 8 comments
Assignees
Labels

Comments

@Yourdigitalheart
Copy link

I am trying to use addmodule but I got error on fresh install:

`yarn cli addmodule Home client
yarn run v1.9.4
$ node tools/cli addmodule Home client
Copying client files…
/Users/sys/Documents/Github/test/tools/cli/module.js:22
if (mkdir.code === 0) {
^

TypeError: Cannot read property 'code' of undefined
at copyFiles (/Users/sys/Documents/Github/test/tools/cli/module.js:22:13)
at module.exports (/Users/sys/Documents/Github/test/tools/cli/module.js:131:7)
at Command.prog.version.command.argument.argument.action [as _action] (/Users/sys/Documents/Github/test/tools/cli.js:14:38)
at Command._run (/Users/sys/Documents/Github/test/node_modules/caporal/lib/command.js:408:40)
at Program._run (/Users/sys/Documents/Github/test/node_modules/caporal/lib/program.js:165:16)
at Program.parse (/Users/sys/Documents/Github/test/node_modules/caporal/lib/program.js:268:17)
at Object. (/Users/sys/Documents/Github/test/tools/cli.js:25:6)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
error Command failed with exit code 1.`

@lyzhovnik lyzhovnik self-assigned this Sep 10, 2018
@lyzhovnik lyzhovnik added the bug label Sep 10, 2018
@lyzhovnik
Copy link
Contributor

Hi, thank you for your issue. I checked it and yes, this bug exists. Have you already fixed it?

@Yourdigitalheart
Copy link
Author

Hi I just switch to Crud-cli and its works fine

@Yourdigitalheart
Copy link
Author

But I am interested by the main branch :)

@Yourdigitalheart
Copy link
Author

My configuration
OSX: 10.13.6
Nvm 9.11.2
let me know if you need more information

@lyzhovnik
Copy link
Contributor

@Yourdigitalheart If you mean this branch #524, It's still in progress. Also We have this new one #790 - I'll fix this bug and merge this branch into master.

@Yourdigitalheart
Copy link
Author

Hi @lyzhovnik when do you think you can merge it into master

Thanks

@lyzhovnik
Copy link
Contributor

Hi, I’ve made a new branch without crud cli, also fixed bug and updated templates. Today I’ll merge it. Thank you for waiting.

@lyzhovnik
Copy link
Contributor

lyzhovnik commented Sep 11, 2018

Hi again @Yourdigitalheart, I've fixed and updated the cli . Full info you can see here - #847

Thank you for the issue and waiting.

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

No branches or pull requests

2 participants