question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class constructor OverlayContainer cannot be invoked without 'new'

See original GitHub issue

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior: When trying to set target to es6 in tsconfig, the application compiles, however this error is reported on startup.

Class constructor OverlayContainer cannot be invoked without ‘new’

Expected behavior: No error

Steps to reproduce:

“target”: “es6”, “lib”: [“es6”, “es2017”, “dom” ],


### Other information:
Chrome and FireFox


Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ygggcommented, May 22, 2019

Fixed by #1474 and available in 4.0.0-rc.5

2reactions
lunaboonacommented, Jan 9, 2019

Any progress on this? I’ve got the same issue.

Read more comments on GitHub >

github_iconTop 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 7:TypeError: Class constructor Observable cannot be ...
core.js:9110 ERROR TypeError: Class constructor Observable cannot be invoked without 'new' at new FirebaseObjectObservable ...
Read more >
Getting error Class Constructor Dialog cannot be invoked ...
Class Constructor Dialog cannot be invoked without new on HTML code. I am attaching the HTML and code for your reference.
Read more >
OpenLayers v7.2.1 API - Class: Overlay
An element to be displayed over the map and attached to a single map location. Like Control , Overlays are visible widgets. Unlike...
Read more >
Angular 6: provide func in new class constructor-angular.js
[Solved]-Angular 6: provide func in new class constructor-angular.js ... Angular 9 - Class constructor SomeComponentClass cannot be invoked without 'new' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found