2

I'm using Angular 11 via ng serve in Chrome. In the debug console, I write ng.probe($0) to debug and get:

Uncaught ReferenceError: ng is not defined

Augury is installed. Dunno if that could be related. It's my first time trying to use ng in the console. I'm guessing it's something I need to set up, or maybe a legacy feature.

UPDATE: It's probably a breakpoint that I threw in there arbitrarily and don't remember exactly where it was. I didn't think so, but I didn't make any other changes, so... ¯\_(ツ)_/¯ Sorry.

BBaysinger
  • 6,614
  • 13
  • 63
  • 132
  • check this link: https://stackoverflow.com/questions/56373044/error-in-console-ng-probe-is-not-a-function – Sajad Feb 22 '21 at 07:33
  • 1
    Different issue. In that question `ng` is recognized, but its `.probe` function isn't. Here `ng` isn't defined. – BBaysinger Feb 22 '21 at 13:01

1 Answers1

1

Most probably this happens when angular is not installed globally. Try to check.

rdr20
  • 186
  • 7