jitendraP-ashutec / ApplicationInsights-JS-package

0 stars 0 forks source link

Error after updating @nativescript/core and @nativescript/ios from 8.7.1 to 8.8.0 #1

Open sulymka opened 1 month ago

sulymka commented 1 month ago

env: node version v18.17.1 nativescropt 8.8.0

to reproduce make new app with

   ns create myCoolApp      and select angular

add dependencies to package.json

 "@microsoft/applicationinsights-channel-js": "^3.3.0",
 "@microsoft/applicationinsights-common": "^3.3.0",
 "@microsoft/applicationinsights-web": "^3.3.0",

add init code to app.component.ts

import { ApplicationInsights } from "@microsoft/applicationinsights-web";

ngOnInit() {
       let appInsights = new ApplicationInsights({
            config: {
                instrumentationKey: insight_key,
                isHybridApp: true
            }
        } as any);

        appInsights.loadAppInsights();
}

start the app and see the error

Error calling module function TypeError: Cannot read properties of undefined (reading '0') File: (file: src/webpack:/myCoolApp/webpack/bootstrap:27:0)

sulymka commented 1 month ago

@jitendraP-ashutec will appreciate if you will be able to take a look on this issue