Nebular: Class constructor OverlayContainer cannot be invoked without 'new'

Created on 3 Dec 2018  路  8Comments  路  Source: akveo/nebular

I'm submitting a ... (check one with "x")

  • [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

important bug components

Most helpful comment

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

All 8 comments

Same error!

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

Hi team ,
I am using angular 7.3.5 version and facing issue while executing application
core.js:15437 ERROR Error: Uncaught (in promise): TypeError: Class constructor OverlayContainer cannot be invoked without 'new'
TypeError: Class constructor OverlayContainer cannot be invoked without 'new'
at NbOverlayContainerAdapter.NbOverlayContainer [as constructor] (mapping.js:233)
at new NbOverlayContainerAdapter (overlay-container-adapter.js:32)
at _createClass (core.js:22039)
at _createProviderInstance (core.js:22004)
at resolveNgModuleDep (core.js:21951)
at NgModuleRef_.get (core.js:23057)
at resolveNgModuleDep (core.js:21971)
at NgModuleRef_.get (core.js:23057)
at resolveDep (core.js:23556)
at createClass (core.js:23427)
at resolvePromise (zone.js:814)
at resolvePromise (zone.js:771)
at zone.js:873
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:17357)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)

Any progress on this issue?

Any news on the issue?

Nebular 4.0.0-RC.2 on Angular 8.0.0-RC.2 (CDK 8.0.0-RC.0)

Will this issue be addressed in time for the release of Nebular 4?
https://github.com/akveo/nebular/projects/1#card-17933744

We'll fix this in 4.0 release. I'll post an update here as soon as fix lands in one of the upcoming release candidates.

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

Was this page helpful?
0 / 5 - 0 ratings