- This topic has 4 replies, 3 voices, and was last updated 7 years, 2 months ago by Brian Fernandes.
-
AuthorPosts
-
NickParticipantHi, 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.
support-swapnaModeratorNick,
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
Brian FernandesModeratorNick,
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.
NickParticipantI 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.
Brian FernandesModeratorNick,
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.
-
AuthorPosts