clarity icon indicating copy to clipboard operation
clarity copied to clipboard

Doesn't work with on angular SPA

Open jay845 opened this issue 4 years ago • 20 comments

I'm trying to use clarity for my angular SPA, but the recordings only displays the entry page, even when user navigates to different pages ( Sometimes i see just a blank screen) . Looks like it doesn't capture URL changes correctly, nor does it navigate to the changed page.

jay845 avatar Jan 20 '21 23:01 jay845

@jay845 - Could you please share a link to the site where this can be reproduced? I can take a look and see what's going on.

sarveshnagpal avatar Jan 28 '21 04:01 sarveshnagpal

@sarveshnagpal i continue to see rendering problems with my angular application, as you can see:

image

same problems with heatmaps; here's a link for a sample recording https://clarity.microsoft.com/shared/recording/78b2cda0-f0c6-43cf-810b-d84126af3146

williamverdolini avatar May 26 '21 20:05 williamverdolini

Did you solve this problem? I have the same problem.

chlfla1012 avatar Aug 25 '21 01:08 chlfla1012

same problem here. It worked since few weeks ago. I am using the old AngularJS

De-Lac avatar Sep 07 '21 13:09 De-Lac

Anyone managed to overcome this issue? Maybe by reloading the script on each page navigation

elliothogg avatar Sep 08 '21 15:09 elliothogg

I am facing the same issue, I don't see any traction here .. anyone able to figure out what's going on by any chance ?

niravparikh05 avatar Oct 19 '21 15:10 niravparikh05

up

fexxdev avatar Jan 11 '22 21:01 fexxdev

up

kopyl avatar May 12 '22 14:05 kopyl

same problem here

marcellphelipe avatar Aug 02 '22 13:08 marcellphelipe

@marcellphelipe can you share a link for the site where the issue can be reproduced cc: @kopyl @federicobenedetti @niravparikh05 @elliothogg @De-Lac @chlfla1012

moustaphaalaa avatar Aug 08 '22 11:08 moustaphaalaa

same problem here with AngularJS, any updates?

OmkarJ13 avatar Aug 25 '22 11:08 OmkarJ13

temporary solution while clarity sees this error....

You can use domain in your .css before <link rel="stylesheet" href="styles.abcde.css" after <link rel="stylesheet" href="http://mydomain/styles.abcde.css"

Yoko-0x0 avatar Oct 25 '22 14:10 Yoko-0x0

The fix above setting the full path worked for us too, we use Angular 12. On our site, everything was fine on the pages using the base URL, http://mysite.com/ but as soon as the user navigated to https://mysite.com/anotherpage the css broke. Adding the full path for the css fixed. I guess clarity is looking for the css relative to the page, which it won't find. When switched to an absolute css path it works.

karlholbrook avatar Nov 04 '22 15:11 karlholbrook

Same problem, checking the recordings, I see that they copy the link of the styles at the moment of record and as we know, with each build of Angular, the file name changes... hope this help.

image

Novaera avatar Nov 15 '22 14:11 Novaera

Also hitting this problem. We can workaround with some difficulty, but why isn't this fixed in Clarity?

JudahGabriel avatar Jan 10 '24 02:01 JudahGabriel

up

AnjeyV avatar Apr 30 '24 09:04 AnjeyV