This is caused by Angular CLI
latest update. In the latest update, webpack searches for boostrap Module in main.ts
top level. In main-polymer.ts
, main.ts
is wrapped by addEventListener
so webpack can't find the bootstrap module that's why it reports an error.
https://stackoverflow.com/questions/40992917/angular-cli-after-update-npm-start-give-error