Error: Cannot match any routes. URL Segment: 'sockjs-node/info'

Viewed 1324

I am getting this error when running angular universal on my local machine with npm run dev:ssr.

ERROR Error: Uncaught (in promise): Error: Cannot match any routes. 
URL Segment: 'sockjs-node/info'
Error: Cannot match any routes. URL Segment: 'sockjs-node/info'

I am not sure if it is a local error or what.

Thanks, J

1 Answers

I had the same problem and realised it must be the Angular analytics getting sent. Switching analytics off using the command:

ng analytics off

solved it for me.

Related