Hi,

I am facing this error when I use 'target':'ES6' in my tsconfig.json.
with ES5 it works.

There is no error during the compilation: ng serve -prod -aot

But this exception is thrown in the browser.

ERROR TypeError: Cannot read property '_moduleDoBootstrap' of undefined
    at e.donePromise.then (main.c9b31732f9a9986521f7.bundle.js:1)
    at e.invoke (polyfills.e6475d2787bb3154d59c.bundle.js:1)
    at Object.onInvoke (main.c9b31732f9a9986521f7.bundle.js:1)
    at e.invoke (polyfills.e6475d2787bb3154d59c.bundle.js:1)
    at r.run (polyfills.e6475d2787bb3154d59c.bundle.js:1)
    at polyfills.e6475d2787bb3154d59c.bundle.js:1
    at e.invokeTask (polyfills.e6475d2787bb3154d59c.bundle.js:1)
    at Object.onInvokeTask (main.c9b31732f9a9986521f7.bundle.js:1)
    at e.invokeTask (polyfills.e6475d2787bb3154d59c.bundle.js:1)
    at r.runTask (polyfills.e6475d2787bb3154d59c.bundle.js:1)

What could be be the right strategy to understand what happens in this kind 
of case ?
I have migrated my project under angular cli and Angular 5 from  Angular 4 
at the same time. This  was not very smart,  there is a lot of changes and 
I am a little bit lost.

Thanks in advance,
regards,
Arnaud.

---
Output of ng version :
Angular CLI: 1.5.2
Node: 6.11.3
OS: linux x64
Angular: 5.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.2
@angular-devkit/build-optimizer: 0.0.33
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.36
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.2
@schematics/angular: 0.1.5
typescript: 2.4.2
webpack: 3.8.1




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