Error running angular application from inside IntelliJ

I believe I was able to run Angular Applications inside of IntelliJ, but I wanted to run my Angular unit tests as well and IntelliJ wanted me to install webdriver-manager, which I did. Now I can run unit tests, but when I try to run my Angular Application, I get waiting for connection to localhost:33951.

Here are the settings I think might be helpful.

 

I am trying to run against Chromium on Ubuntu.

 

7 comments
Comment actions Permalink

Please try choosing a different Chrome executable in Settings | Tools | Web Browsers, Chrome - will it work?

Also, please make sure to close all Chrome instances prior to starting the debugger - does it help?

0
Comment actions Permalink

As far as I know, I only have the one chromium executable. Why would I have more than one?

0
Comment actions Permalink

Debugging doesn't work with Chromium installed with snap due to some permissions issues when creating a profile dir (https://youtrack.jetbrains.com/issue/WEB-38511).

Try using chromium-browser package (non-snap) instead

0
Comment actions Permalink

Well, that looks like progress. I have removed the snap version (I run firefox for personal stuff on Ubuntu. I use Chrome for development) and ran the new chrome. Now chrome starts and that looks good, but it's giving 404 on localhost:4200 like the Angular server isn't starting.

Thanks so much for your help. Can you help the rest of the way?

0
Comment actions Permalink

>it's giving 404 on localhost:4200 like the Angular server isn't starting.

and is it started? Did you run ng serve (in terminal or using NPM run configuration)?

 

Please see https://www.jetbrains.com/help/webstorm/2019.1/angular.html#angular_running_and_debugging

1
Comment actions Permalink

I didn't start it. I thought it would start automatically when I ran the Angular Application.

0
Comment actions Permalink

no, the server has to be started separately; the configuration you have used just allows attaching the debugger to the running application.

See https://www.jetbrains.com/help/webstorm/2019.1/angular.html#angular_running_and_debugging for instructions on running/debugging Angular

1

Please sign in to leave a comment.