Skip to content

Error: ng g interface image => Invalid blueprint: interface #1225

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

Closed
albanx opened this issue Jun 27, 2016 · 8 comments
Closed

Error: ng g interface image => Invalid blueprint: interface #1225

albanx opened this issue Jun 27, 2016 · 8 comments

Comments

@albanx
Copy link

albanx commented Jun 27, 2016

  1. OS
    MAC OSX Yosemite 10.10.5
  2. NG Versions
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 0.0.39
node: 4.1.1
os: darwin x64
  1. Repro steps
    ng g interface image

Just trying to generate an interface with the CLI. Not working.
Cheers
Thank you
Alban

@albanx
Copy link
Author

albanx commented Jun 27, 2016

I am trying to create a simple class Interface (not a visual stuff). Yes
interface is a valid command according to your URL and the guide
here:
https://github.com/angular/angular-cli#generating-components-directives-pipes-and-services

On Mon, Jun 27, 2016 at 4:23 PM, Ricardo Varanda [email protected]
wrote:

What exactly are you trying to create, interface is not a valid command
the commands which you can use can be found here:

https://github.com/angular/angular-cli/tree/master/addon/ng2/blueprints

It seems like you want to create a visual component in which case you
should first generate a route for it and then create and link in the
directives a component for this.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1225 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABFAqKd21Qg5IhRe9wBMQWbhwWROVCcQks5qP-rUgaJpZM4I_NMP
.

www.albanx.com
www.realuploader.com

@alexciesielski
Copy link

Your'e running an older version of angular-cli. Try updating.

https://github.com/angular/angular-cli#updating-angular-cli

@albanx
Copy link
Author

albanx commented Jun 27, 2016

Already tried with the above, and it installed the same version.

On Mon, Jun 27, 2016 at 4:30 PM, Alexander Ciesielski <
[email protected]> wrote:

Your'e running an older version of angular-cli. Try updating.

https://github.com/angular/angular-cli#updating-angular-cli


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1225 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABFAqHBMtUT1n-cFsQ0PwwN7r4Hg-OW3ks5qP-yOgaJpZM4I_NMP
.

www.albanx.com
www.realuploader.com

@albanx
Copy link
Author

albanx commented Jun 27, 2016

Ah wait, maybe I have to update the local one

On Mon, Jun 27, 2016 at 4:32 PM, Alban Xhaferllari [email protected] wrote:

Already tried with the above, and it installed the same version.

On Mon, Jun 27, 2016 at 4:30 PM, Alexander Ciesielski <
[email protected]> wrote:

Your'e running an older version of angular-cli. Try updating.

https://github.com/angular/angular-cli#updating-angular-cli


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1225 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABFAqHBMtUT1n-cFsQ0PwwN7r4Hg-OW3ks5qP-yOgaJpZM4I_NMP
.

www.albanx.com
www.realuploader.com

www.albanx.com
www.realuploader.com

@Splaktar
Copy link
Contributor

@albanx This looks like a duplicate of #1224? Can you close one of them?

@albanx
Copy link
Author

albanx commented Jun 27, 2016

After updating to the last version I get this error:

alban-mac:public_web axhaferllari$ ng init
module.js:338
    throw err;
    ^

Error: Cannot find module 'exists-sync'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/export/www/alban/powerbast/public_web/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

So seems redirecting to this one now #1186

@albanx
Copy link
Author

albanx commented Jun 28, 2016

Fixed. Here it is what happened:

  1. Update angular-cli following this guide https://github.com/angular/angular-cli#updating-angular-cli (both local and global). It updated to version angular-cli": "^1.0.0-beta.8". Tested and failed with the above error.
  2. Then I went into node_modules/angular-cli and run npm install
  3. Return to the root folder and run again npm install

This fixed my issue. Generating interface now is working

@albanx albanx closed this as completed Jun 28, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants