Hello everyone,
I have a project I started with angular2 beta, I've updated it 
progressively to angular6 and webpack 4 and it's working but I'm still 
using some old options.
The current compiler target is es5 so I would like to upgrade to es2017 or 
at least es2015. But when I change the target in my tsconfig, the 
compilation still works, I have the following error in the browser : 

Uncaught Error: Class constructor SysceaElementDefault cannot be invoked 
without 'new': Error during instantiation of ScStorageRootService!. caused 
by: Class constructor SysceaElementDefault cannot be invoked without 'new'
    at wrappedError (commons~main~vendor.chunk.js:56082)
    at injectionError (commons~main~vendor.chunk.js:56116)
    at instantiationError (commons~main~vendor.chunk.js:56201)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_._instantiate (commons~main~vendor.chunk.js:
56858)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_._instantiateProvider (commons~main~vendor.chunk
.js:56836)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_._new (commons~main~vendor.chunk.js:56824)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_._getObjByKeyId (commons~main~vendor.chunk.js:
56880)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_._getByKeyDefault (commons~main~vendor.chunk.js:
56912)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_._getByKey (commons~main~vendor.chunk.js:56873)
    at ReflectiveInjector_.push.../../../../node_modules/@angular/core/fesm5
/core.js.ReflectiveInjector_.get (commons~main~vendor.chunk.js:56796)
    at scBootstrap (main.chunk.js:19432)
    at Module../src/main.browser.ts (main.chunk.js:38645)
    at __webpack_require__ (runtime.bundle.js:79)
    at checkDeferredModules (runtime.bundle.js:46)
    at Array.webpackJsonpCallback [as push] (runtime.bundle.js:33)
    at main.chunk.js:2


I've tried several things with no success till now. Does any one have an 
idea of what to do ?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to