Giter Site home page Giter Site logo

Comments (8)

niemyjski avatar niemyjski commented on June 21, 2024 4

I've fixed this in version 1.6.1, please update and let us know if you run into any issues.

from exceptionless.javascript.

niemyjski avatar niemyjski commented on June 21, 2024 2

We are also seeing this on our end, I noticed the dependency was brought in incorrectly in our app. I'll take a look into this and update this issue.

from exceptionless.javascript.

niemyjski avatar niemyjski commented on June 21, 2024

We also have an angular 7 prod builds for our new website without any issues. Is there nay chance there is a sample starter app that is close to your app that we could try this on? Any chance you could fork it and configure Exceptionless exactly how it is in your app and I'll pull it down and debug it.

from exceptionless.javascript.

niemyjski avatar niemyjski commented on June 21, 2024

I'm double checking our setup and confirming there are no issues. I have tested this on universal apps without issue I'm wondering what the root issue is.

from exceptionless.javascript.

MichaelHancock avatar MichaelHancock commented on June 21, 2024

Thank you for responding so soon. Unfortunately I don't really have an app I can put on GitHub to demonstrate this but I do have some reproduction steps which you should be able to use to debug it. I have been able to recreate this on a fresh angular project.

  1. ng new Test
  2. Update package.json to match the packages I have listed above
  3. Delete package-lock.json and node_modules
  4. npm i
  5. Update app.module.ts to look like this:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { ExceptionlessClient } from 'exceptionless';

ExceptionlessClient.default.config.apiKey = '';
ExceptionlessClient.default.config.serverUrl = '';
ExceptionlessClient.default.config.updateSettingsWhenIdleInterval = -1;
ExceptionlessClient.default.config.addDataExclusions('ngDebugContext');

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
  1. ng serve --prod --source-map

Following these steps I get the following error:

exceptionless.js.pre-build-optimizer.js:1280 Uncaught TypeError: (void 0) is not a function
    at Object.lYe+ (exceptionless.js.pre-build-optimizer.js:1280)
    at f (bootstrap:78)
    at Module.zUnb (core.js.pre-build-optimizer.js:24324)
    at f (bootstrap:78)
    at Object.0 (events.js.pre-build-optimizer.js:426)
    at f (bootstrap:78)
    at t (bootstrap:45)
    at Array.r [as push] (bootstrap:32)
    at main.ffe2c0e5b2efc269ce1d.js:1
lYe+ @ exceptionless.js.pre-build-optimizer.js:1280
f @ bootstrap:78
zUnb @ core.js.pre-build-optimizer.js:24324
f @ bootstrap:78
0 @ events.js.pre-build-optimizer.js:426
f @ bootstrap:78
t @ bootstrap:45
r @ bootstrap:32
(anonymous) @ main.ffe2c0e5b2efc269ce1d.js:1

This error disappears if I remove the references to ExceptionlessClient.

Hope this helps.

from exceptionless.javascript.

yuxingz avatar yuxingz commented on June 21, 2024

I also encountered this problem. Is there a solution?

from exceptionless.javascript.

yuxingz avatar yuxingz commented on June 21, 2024

Thank you, I try

from exceptionless.javascript.

yuxingz avatar yuxingz commented on June 21, 2024

Ok, no problem, thank you very much.

from exceptionless.javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.