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

Ignite command fails and i can't even run the command ignite doctor. #1394

Closed
san4u opened this issue Mar 15, 2019 · 18 comments
Closed

Ignite command fails and i can't even run the command ignite doctor. #1394

san4u opened this issue Mar 15, 2019 · 18 comments

Comments

@san4u
Copy link

san4u commented Mar 15, 2019

This is the error which is showing when i try to run the ignite command.
Error: Error: Couldn't load command component -- needs a "run" property with a function.

  - command-loader.js:53 Object.loadCommandFromFile
    [global]/[gluegun]/build/loaders/command-loader.js:53:15
  
  - plugin-loader.js:40 
    [global]/[gluegun]/build/loaders/plugin-loader.js:40:105
  
  - Array.map
  
  - plugin-loader.js:40 Object.loadPluginFromDirectory
    [global]/[gluegun]/build/loaders/plugin-loader.js:40:59
  
  - runtime.js:172 Runtime.addPlugin
    [global]/[gluegun]/build/runtime/runtime.js:172:38
  
  - runtime.js:201 
    [global]/[gluegun]/build/runtime/runtime.js:201:58
  
  - Array.map
  
  - runtime.js:201 Runtime.addPlugins
    [global]/[gluegun]/build/runtime/runtime.js:201:24
  
  - builder.js:139 
    [global]/[gluegun]/build/domain/builder.js:139:61
  
  - Array.forEach
  

/Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/index.js:13
    throw up;
    ^

Error: Error: Couldn't load command component -- needs a "run" property with a function.
    at Object.loadCommandFromFile (/Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/loaders/command-loader.js:53:15)
    at /Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/loaders/plugin-loader.js:40:105
    at Array.map (<anonymous>)
    at Object.loadPluginFromDirectory (/Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/loaders/plugin-loader.js:40:59)
    at Runtime.addPlugin (/Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/runtime/runtime.js:172:38)
    at /Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/runtime/runtime.js:201:58
    at Array.map (<anonymous>)
    at Runtime.addPlugins (/Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/runtime/runtime.js:201:24)
    at /Users/macbookpro/.config/yarn/global/node_modules/gluegun/build/domain/builder.js:139:61
    at Array.forEach (<anonymous>)
@san4u san4u changed the title Ignite command fails and i can't even do ignite doctor. Ignite command fails and i can't even run the command ignite doctor. Mar 15, 2019
@jamonholmgren
Copy link
Member

Hey @san4u , thanks for your patience -- I'm a bit behind on Ignite issues. Can you try this?

yarn global add ignite-cli@3.0.0-alpha.5
ignite --version
ignite doctor

@timkuilman
Copy link

Same issue here running 3.0.0-beta.3

ignite --help and ignite doctor commands fail.

@brenohq
Copy link

brenohq commented Apr 25, 2019

same error here on 3.0.0-beta.4

@superp
Copy link

superp commented Apr 29, 2019

I have the same problem with 3.0.0-alpha.5.
Both ignite --help and ignite doctor fail.
What can I do to fix this?

@kevinvangelder
Copy link
Member

If you're having trouble with the betas, try installing 2.2.4

@ryanlntn
Copy link
Member

ryanlntn commented May 4, 2019

This error indicates that you're using an ignite plugin which has commands that have not yet been updated to support ignite 3. What ignite plugins are you using?

@superp
Copy link

superp commented May 6, 2019

If you're having trouble with the betas, try installing 2.2.4

I have tried to upgrade version to 3.1.1 but it had no success.
So, I've downgraded to 2.2.4 and it works now.

@jamonholmgren
Copy link
Member

@superp Can you file a new issue with the problems you're having with 3.1.1? We'd like to fix them.

@superp
Copy link

superp commented May 7, 2019

@superp Can you file a new issue with the problems you're having with 3.1.1? We'd like to fix them.

@jamonholmgren At 3.1.1 version the problem was the same. No one ignite's generators and ignite doctor commands didn't work. The error was the same as at the top of this issue.

@magpielover
Copy link

same for me for version 3.1.1

@ryanlntn
Copy link
Member

ryanlntn commented May 8, 2019

@superp @magpielover Can you post the ignite plugins you're using? One or more of them has commands that need to be updated to support Ignite 3 which changed made breaking changes to the command interface.

@James-deWitt
Copy link

This seemed to occur for me on ignite-cli@3.1.1 after adding ignite-maps and running npm install

Downgrading to 2.2.4 has broken the bowser generators however...

@ryanlntn
Copy link
Member

ryanlntn commented May 10, 2019

Thanks @James-deWitt! We'll get an update out for ignite-maps to support Ignite 3.

Downgrading to 2.2.4 has broken the bowser generators however...

2.x Ignite is compatible with 3.x Bowser so you'll also need to downgrade the boilerplate for the time being.

@ryanlntn
Copy link
Member

@James-deWitt https://github.com/infinitered/ignite-maps/releases/tag/v1.0.0 is now compatible with Ignite 3.

@James-deWitt
Copy link

Awesome! I can confirm that my ignite-cli@3.1.1 doesn't throw up anymore!

@viralS-tuanlv
Copy link

the same issue with ignite 3.1.2, how to resolve it?

@john1jan
Copy link

i also have same with ignite 3.1.3

@jamonholmgren
Copy link
Member

Can you file a new issue with more information? Thanks!

@infinitered infinitered locked as resolved and limited conversation to collaborators Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests