microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
320 stars 138 forks source link

Incompatible with Node v10 despite advertised #1188

Closed datwelk closed 10 months ago

datwelk commented 10 months ago

This SDK is not compatible with node v10, despite advertised.

SDK version: 2.7.2 Node version: 10.6.0

Advertisement:

image

Error:

ReferenceError: globalThis is not definedat Object.<anonymous> (C:\home\site\wwwroot\node_modules\@azure\core-util\dist\index.js:236:20)at Module._compile (internal/modules/cjs/loader.js:778:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)at Module.load (internal/modules/cjs/loader.js:653:32)at tryModuleLoad (internal/modules/cjs/loader.js:593:12)at Function.Module._load (internal/modules/cjs/loader.js:585:3)at Module.require (internal/modules/cjs/loader.js:692:17)at Module.patchedRequire [as require] (C:\home\site\wwwroot\node_modules\diagnostic-channel\dist\src\patchRequire.js:16:46)at require (internal/modules/cjs/helpers.js:25:18)at Object.<anonymous> (C:\home\site\wwwroot\node_modules\@azure\core-rest-pipeline\dist\index.js:6:16)Application has thrown an uncaught exception and is terminated:ReferenceError: globalThis is not definedat Object.<anonymous> (C:\home\site\wwwroot\node_modules\@azure\core-util\dist\index.js:236:20)at Module._compile (internal/modules/cjs/loader.js:778:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)at Module.load (internal/modules/cjs/loader.js:653:32)at tryModuleLoad (internal/modules/cjs/loader.js:593:12)at Function.Module._load (internal/modules/cjs/loader.js:585:3)at Module.require (internal/modules/cjs/loader.js:692:17)at Module.patchedRequire [as require] (C:\home\site\wwwroot\node_modules\diagnostic-channel\dist\src\patchRequire.js:16:46)at require (internal/modules/cjs/helpers.js:25:18)at Object.<anonymous> (C:\home\site\wwwroot\node_modules\@azure\core-rest-pipeline\dist\index.js:6:16)