Currently we are using the JS1 diagram control in a Web Forms applicaion which was based on the Syncfusion Diagram Builder sample. We are interested in moving to JS2, but the Diagram Builder application exists only in angular. We are trying to install the angular application but are running into some issues probably because I am a newbie in angular.
I am starting with clean install because we are not using angular. I have installed the latest version of npm and version 5 of angular because it looks like that is the version used in the sample. See attached ng version to see what I have installed.
Also it isn't clear to me which directory I should be working from. I am assuming EJ2-SHOWCASE-ANGULAR-DIAGRAMBUILDER-MASTER because that is where the README.md file is.
RTRamya Thirugnanam Syncfusion Team November 15, 2018 11:56 PM
Please use ng serve (not a server) command to compile and run the application. Please refer to the below screenshot.
GBGordon BrownNovember 16, 2018 03:23 PM
Sorry about that, my bad. This still isn't working though. It looks to me like you are running with "ng serve" on your system. I tried "ng serve" and "npm run ng serve" neither worked. Just looking at the npm documentation it looks to me like npm run command is trying to run a script called "ng" which it isn't finding. I've include a screen shot of angular and npm versions which I suspect is the issue. Attachment: ng_serve_5f4d925c.zip
RTRamya Thirugnanam Syncfusion Team November 19, 2018 06:10 AM
Please try with the below forum link to make ng serve work.
We will ensure with the latest version of NodeJS and NPM if still the issue with ng serve is reproduced.
GBGordon BrownNovember 19, 2018 11:45 AM
Your distilled installation instructions in the readme.md file are as follows.
npm i webpack-cli
The first line installs dependant packages, the second installs angular and the third compiles and runs the application.
The issue is that line two installs the current version of angular which is now version 7. Your application was created with version 5.6. If you replace line 2 with the below it now works.
npm install -g firstname.lastname@example.org
You may not need the -g as this does a global install, but in my case this is fine as this is the only angular app I am working with. Also it looks like you need to replace the hyphen with a slash.
May I suggest you update your installation instructions so it works for the next person.
RTRamya Thirugnanam Syncfusion Team November 20, 2018 12:04 AM
Thanks for your valuable suggestion.
We will update the readme.txt file instruction.
GBGordon BrownNovember 28, 2018 03:52 PM
I am still getting the same behaviour.
RTRamya Thirugnanam Syncfusion Team November 29, 2018 01:22 AM
Referring the ej.diagram.min.jsand ej.web.all.min.jsscripts are no more needed for EJ2 Diagram. Since, the both scripts will be loaded and referred automatically if you are using angular CLI.
Note: The Ej1 is expected to refer the min files manually.