question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI Command "au generate resource" Not Working

See original GitHub issue

I’m submitting a bug report

  • Library Version:
  1. cli 0.17.0
  2. aurelia 1.0.0

Please tell us about your environment:

  • Operating System: Windows 10 Enterprise

  • Node Version: 4.4.7 LTS

  • NPM Version: 3.10.6

  • Browser: N/A

  • Language: TypeScript 2.0.0

Current behavior: After generating a new project using au new I tried to use the Generator feature. No changes were made to the scaffold project.

Using the “generate” command for the CLI throws this error: Invalid Command: generate

Full Error Inner Error: Message: Path must be a string. Received undefined Inner Error Stack: TypeError: Path must be a string. Received undefined at assertPath (path.js:8:11) at Object.win32.join (path.js:221:5) at new <anonymous> (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\lib\project.js:23:31) at Object.invoke (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:415:12) at InvocationHandler.invoke (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:392:166) at Container.invoke (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:654:23) at StrategyResolver.get (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:133:35) at Container.get (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:591:21) at Optional.get (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:89:24) at Container.get (C:\Users\jwuliger\AppData\Roaming\npm\node_modules\aurelia-cli\node_modules\aurelia-dependency-injection\dist\commonjs\aurelia-dependency-injection.js:578:18) End Inner Error Stack

Expected/desired behavior:

Just run any au generate command from the documentation.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
EisenbergEffectcommented, Oct 7, 2016

This may be an issue related to NPM. We’ve seen some npm install issues cause this. You would need to clear your system’s npm cache and install again. Then make sure to be in the project folder after you create a project to run the additional commands. We have this issue documented in a troubleshooting section of the docs going out soon.

0reactions
jiger25783commented, Oct 17, 2016

what do i have to install again? node or au cli?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Aurelia command-line tool | Hands-On Full Stack Web ...
There are many ways to create an Aurelia project. For this book, we will use the official Aurelia command-line tool, which is supported...
Read more >
Troubleshoot errors when creating Route 53 resource record ...
', type='A'] but it was not found. You're using an incorrect hosted zone ID for your domain name. Run the change-resource-record-sets command ...
Read more >
The basics of the Aurelia CLI.
Aurelia CLI commands do not work properly in Git BASH emulator on Windows. ... Executing au generate <resource> runs a generator to scaffold...
Read more >
pac solution - Power Platform - Microsoft Learn
Describes commands and parameters for the Microsoft Power Platform CLI solution command group.
Read more >
can not generate resource nestjs : typeScript - Stack Overflow
npm install --save-dev webpack-cli@3.1.1. but they also did not work. Issue when creating new resources with nest g resource. package.json
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found