Running multiple version in one session

August 7, 2023 ยท View on GitHub

If multiple instances of different versions of Application Insights are running on the same page, errors may occur. In this talbe, we have identified several common error messages that you might encounter.

Script VerSnippet Context sdkversionMicrosoft.aiERROR MESSAGE
2 -> 32core utils, should be v2
Mod is all v2
Uncaught TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking')
3 -> 22core utils, should be v2
Mod is all v2
TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking')
1 -> 33m.ai.version = 1
Inside mode, only RequestHeaders: "---", all other v3
Dynamic config change fail
3 -> 13Mod all v3,function location is 3Uncaught TypeError: Cannot assign to read only property 'CRITICAL' of object '#'

Dynamic config change fail
1 -> 22m.ai.version = 1, mod all v2TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking')
2 -> 12core utils, should be v2
Mod is all v2
Uncaught TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking')

Typiocal Error in console log:

  1. Uncaught TypeError: Cannot assign to read only property 'CRITICAL' of object '#'
  2. When using Dynamic config, get error meesage: Uncaught TypeError: Cannot set property config of # which has only a getter