Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
TypeError: (void 0) is not a function #84
Comments
|
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. |
|
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. |
|
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.
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 { }
Following these steps I get the following error:
This error disappears if I remove the references to Hope this helps. |
|
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. |
|
I also encountered this problem. Is there a solution? |
|
Thank you, I try |
|
I've fixed this in version 1.6.1, please update and let us know if you run into any issues. |
|
Ok, no problem, thank you very much. |
When including the Exceptionless client library within my Angular 7 Application, I get a type error on bootstrap when I do a production build (non production builds work fine).
The error is thrown within my app module where I do:
The actual error appears to happen on line 1280
"webpack:///./node_modules/exceptionless/dist/exceptionless.js.pre-build-optimizer.js".
Here
requireappears to be throwing the error.Removing the exceptionless client library from my application appears to fix the issue but I am not entirely convinced that this is a exceptionless issue.
Has anyone experienced this? Currently I am unable to serve production builds and have exceptionless logging. I have tried modify (updating/downgrading) all angular dependencies but this did not resolve the issue.
Here is my package json, I am using the latest version of the exceptionless client library: