facebook

Not an Angular CLI Project

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #534983 Reply

    Nick
    Participant

    Hi, just purchased Angular IDE and having some problems debugging my first application. I created an Angular CLI project using a project generator from Alfresco on the command line. I can run the project using npm start on the command line and I can edit it in Eclipse, all the Angular IDE support works until I try to debug. When I set up the debug profile there is an error in the debug profile window which says ‘Not an Angular CLI project’; I’m confused because it must be since I am running it fine on the command line. There are no clues as to why.

    Help much appreciated.

    #535053 Reply

    support-swapna
    Moderator

    Nick,

    Thank you for buying Angular IDE. Sorry that you are seeing this problem with debugging.
    The dev team is looking into it and they will get back to soon.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #535178 Reply

    Brian Fernandes
    Moderator

    Nick,

    Apologies for the delayed response. Angular IDE is developed around the official Angular CLI – we understand the CLI’s project structure, configurations, source, etc. Fundamentally, since your project was not created with the Angular CLI (or our wizards, which internally use the CLI) we can’t connect all the dots, and some functionality, like debugging, will not work.

    While we may add support for non CLI projects in the future, I believe your fastest path to success right now would be to create a project with our Angular project wizard and copy the resources from your generated project into this project. I know this is inconvenient, but the alternative would be to set up source maps yourself and start your application externally – then you can connect to the running app using our debugger, but of course, this would be a cumbersome experience. We could still assist with this option if you would prefer it, but unless you need to continually use the alfresco generator or other commands, I would recommend the former option.

    #535286 Reply

    Nick
    Participant

    I have tried creating a fresh Angular IO project. But there is now a problem creating the actual project. have attached the log of creating the project in Eclipse, Eclipse reported an error message and said that the project had not created properly. Please see attached file. The error reported in the log file was ‘You cannot use the new command inside an Angular CLI project.’

    Thanks

    Nick

    Attachments:
    You must be logged in to view attached files.
    #535344 Reply

    Brian Fernandes
    Moderator

    Nick,

    That was some confusing output, but after looking at some of the code, it appears that you have created your project in folder in which one more more of the parent/ancestor folders also contain package.json files, and this is confusing the project creation wizard.

    To illustrate, you created the project in “C:\Users\Nick\Documents\ProjectChester\service\dev\alfresco-workspace\md-table3\”, but some ancestor of the md-table3 folder also contains a package.json file.

    Ideally, our wizard should have detected this situation and prevented the creation of the project in this location, so we’ve filed a bug to ensure this is validated. To move forward, I would recommend you simply create a project in another location, where you’re sure there is no package.json file present in the entire hierarchy, going up from the folder.

    Apologies for the inconvenience caused.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Not an Angular CLI Project

You must be logged in to post in the forum log in