在我的配置文件中,我包括了此内容:
NPM_DEPENDENCIES: InjectableDependency[] = [
{ src: 'babel-register/node_modules/core-js/client/shim.js', inject: 'shims' },
{ src: 'zone.js/dist/zone.js', inject: 'libs' },
{
src: 'zone.js/dist/long-stack-trace-zone.js',
inject: 'libs',
buildType: BUILD_TYPES.DEVELOPMENT
},
{ src: 'intl/dist/Intl.min.js', inject: 'shims' },
{
src: 'systemjs-builder/node_modules/systemjs/dist/system.src.js',
inject: 'shims',
buildType: BUILD_TYPES.DEVELOPMENT
},
{
src: '.tmp/Rx.min.js',
inject: 'libs',
buildType: BUILD_TYPES.DEVELOPMENT
}];
但是启动浏览器时出现错误:
(SystemJS) expected expression, got '<'
@http://localhost:5555/app/main.js:3:21
@http://localhost:5555/app/main.js:13:4
@http://localhost:5555/app/main.js:14:3
我已将我的角度升级到9,并将节点升级到12。 谁能告诉我以上错误的原因是什么?