Angular 7 - Class constructor ErrorHandler cannot be invoked without 'new'
See original GitHub issueHi,
We’ve recently upgraded to angular 7 and typescript 3.2.4
We’ve followed the instructions here: https://docs.bugsnag.com/platforms/javascript/angular/
But we are getting the following error:
TypeError: Class constructor ErrorHandler cannot be invoked without 'new'
at new BugsnagErrorHandler (index.js:15)
at errorHandlerFactory (app.module.ts:78)
at _callFactory (core.js:27000)
at _createProviderInstance (core.js:26943)
at initNgModule (core.js:26846)
at new NgModuleRef_ (core.js:27978)
at createNgModuleRef (core.js:27961)
at Object.debugCreateNgModuleRef [as createNgModuleRef] (core.js:30474)
at NgModuleFactory_.create (core.js:31572)
at ngZone.run (core.js:22412)
Line 15 being:
Might be related to this - https://github.com/bugsnag/bugsnag-js/issues/482
Anyone else having this issue?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Class constructor cannot be invoked without 'new' in TS
The "Class constructor cannot be invoked without new" error occurs when the target property in tsconfig.json is set to lower than es6 or...
Read more >angular - class constructor cannot be invoked without 'new
I am trying to use a 3rd party typescript library(antlr - https://github.com/tunnelvisionlabs/antlr4ts) in my angular 2 project created using ...
Read more >Angular script compilation: TypeError: Class constructor ...
Hi there, We are running a project in an Ionic/Angular app, ... TypeError: Class constructor MyScript cannot be invoked without 'new' at ...
Read more >Javascript ES6 TypeError Class constructor Client cannot be ...
When I try to execute nodemon command I always see this error TypeError: Class constructor Client cannot be invoked without 'new'.
Read more >class constructor cannot be invoked without 'new' angular ...
TypeError : Class constructor Home cannot be invoked without 'new' ; 1. import React, { Component } from 'react' ; 2. import {...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updating to the new bugsnag library fixes this.
Thanks!
U save my day