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

Hi i am getting following typeError while running the command ngentest. #26

Closed
subrat7 opened this issue Jan 7, 2020 · 2 comments
Closed

Comments

@subrat7
Copy link

subrat7 commented Jan 7, 2020

const tsFile = argv._[0].replace(/.spec.ts$/, '.ts');
^

TypeError: Cannot read property 'replace' of undefined at Object. (C:\Users\20122701\AppData\Roaming\npm\node_modules\ngentest\index.js:43:26)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

Please help me,
Thanks in advance.

@allenhwkim
Copy link
Owner

allenhwkim commented Jan 20, 2020

You need to provide your component file name as an agrument
e.g., $ ngentest ./app.component.ts

Please provide your full command outputs. I may need to do some for windows.
This has been tested with Mac.

@subrat7
Copy link
Author

subrat7 commented Feb 10, 2020

thanks
It worked for me :)

@subrat7 subrat7 closed this as completed Feb 10, 2020
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

2 participants