I followed https://angular.io/docs/ts/latest/guide/upgrade.html# to use UpgradeModule from '@angular/upgrade/static'.
Grunt-ts is used to transpile the TypeScript files. The app also uses grunt-browserify for compilation. When grunt is run, it throws errors at grunt-browserify with the following message:
>> export { downgradeComponent } from './src/aot/downgrade_component';
>> ^ ParseError: 'import' and 'export' may appear only with 'sourceType: module'
I added babelify in grunt-browserify options:
"transform": [["browserify-shim"], ["babelify", {"presets": ["es2015"]}]]
But I'm still getting the same error which is pointing to @angular/upgrade/static.js
Thanks!