How to run code editor mode

Post Reply
robtschnitzer
Posts: 7
Joined: 30 Dec 2020, 22:15

22 Jan 2021, 22:44

hi,
I've tried both 10.0.0 and 10.0.1, both have the same issue...
When i run 'ng serve --configuration code' I get this error:
unhandled exception: Configuration 'code' is not set in the workspace
It looks like angular.json has no 'code' configuration.
Please let me know how I can run sass editor?

siris
Posts: 67
Joined: 29 Jul 2019, 13:57

01 Feb 2021, 14:58

Hi,

@merve Could you please check this issue?

Best Regards,

merve7
Posts: 680
Joined: 12 Sep 2017, 10:44

08 Feb 2021, 14:08

Hi,
We did some improvements for v11 and the live demo works with v11. Therefore, the command line that you sent works for v11. You can upgrade to the new version or you can use the below changes for works on code mode.
in (src/environments/environment.ts)
Image

robtschnitzer
Posts: 7
Joined: 30 Dec 2020, 22:15

22 Feb 2021, 16:22

Thanks for your response. I wasn't sure if you were implying that the edit to environment.ts would work on version 10? It does not fix the issue in version 10.

merve7
Posts: 680
Joined: 12 Sep 2017, 10:44

24 Feb 2021, 13:38

Hi,
Yes, the edit to environment.ts would work on version 10.
'ng serve --configuration code' command works for v11 and later.

robtschnitzer
Posts: 7
Joined: 30 Dec 2020, 22:15

25 Feb 2021, 14:59

Thanks, I could not get it to work in 10, however i found that i can run code editor 11 and use it in primeNg 10, so that works for me!

Post Reply

Return to “PrimeNG Theme Designer API”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest