I upgraded the AngularJS project to Angular2+. And then I had this issue.
This upgrade uses systemjs v0.21.6, core-js v2.6.6, reflect-metadata v0.1.13, zone.js v0.8.26.
SyntaxError: Unexpected token < at eval (<anonymous>) at evaluate (system.src.js:2860) at system.src.js:3665 at doEvaluateDynamic (system.src.js:1166) at ensureEvaluate (system.src.js:1001) at system.src.js:621 at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:150) at zone.js:889 at ZoneDelegate.invokeTask (zone.js:423)
I upgraded the AngularJS project to Angular2+. And then I had this issue. This upgrade uses systemjs v0.21.6, core-js v2.6.6, reflect-metadata v0.1.13, zone.js v0.8.26.
SyntaxError: Unexpected token < at eval (<anonymous>) at evaluate (system.src.js:2860) at system.src.js:3665 at doEvaluateDynamic (system.src.js:1166) at ensureEvaluate (system.src.js:1001) at system.src.js:621 at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:150) at zone.js:889 at ZoneDelegate.invokeTask (zone.js:423)
This is my configuration file.
// index.html `
`
// systemjs.config.js
(function(global) { System.config({ paths: { 'npm:': 'node_modules/' }, map: { app: 'app', '@angular/core': 'npm:@angular/core/bundles/core.umd.js', '@angular/common': 'npm:@angular/common/bundles/common.umd.js', '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', '@angular/http': 'npm:@angular/http/bundles/http.umd.js', '@angular/router': 'npm:@angular/router/bundles/router.umd.js', '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js', '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', 'rxjs': 'npm:rxjs' }, packages: { app: { defaultExtension: 'js' }, rxjs: { defaultExtension: 'js', format: 'cjs' } } }); }(this));