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

Error while running webapp(generator) #789

Open
MN-Dheeraj opened this issue May 14, 2024 · 3 comments
Open

Error while running webapp(generator) #789

MN-Dheeraj opened this issue May 14, 2024 · 3 comments
Assignees

Comments

@MN-Dheeraj
Copy link

MN-Dheeraj commented May 14, 2024

I installed yo and generator-webapp with the following commands.

npm install -g yo
npm install -g generator-webapp

But, running "yo webapp" gives this error.

PS D:\Yeoman_code-gen\webapp> yo webapp
(node:19092) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:19092) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:19092) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
Error webapp

generator.run is not a function

@arche94
Copy link

arche94 commented Jun 14, 2024

Precisely the same error here: happening on MacOS Catalina 10.15.7, if it matters.

(node:46786) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:46786) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:46786) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
Error webapp 

generator.run is not a function

@gba-foundever
Copy link

Same here

OS version/details: MacOs 15.0.1
Node version: 23.3.0
npm version: 10.9.0
Version of yo : 5.0.0

yeoman/yo#818

but just warning part

@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Jan 21, 2025
@JoshuaKGoldberg
Copy link

I think this is really two bugs:

  • 1️⃣ A bunch of Warning: Accessing nonexistent property ... log spew
  • 2️⃣ Crashing with generator.run is not a function crash

1️⃣ The log spew is annoying and happens only in some generators I've tried. It does not repro with yo code but does repro with react-webapp and webapp. Looks like it was reported on yo in yeoman/yo#652, which points to shelljs/shelljs#991. I think this is likely from the generators having old dependencies.

2️⃣ From generators I've tried, the crash only happens with yo webapp. code and react-webapp run fine. I'll go ahead and transfer this over to the generator-webapp repo for triage.

Cheers! 🎩

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

4 participants