大佬教程收集整理的这篇文章主要介绍了在流星更新后,angular2-meteor样本停止工作,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
Uncaught SyntaxError: Unexpected token < Uncaught (in promisE) Uncaught SyntaxError: Unexpected token < EvaluaTing http://localhost:3000/client/app.js Error loading http://localhost:3000/client/app.js
更新命令控制台输出:
@H_999_9@meteor update This project is already at Meteor 1.2.1,the latest release. Changes to your project's package version SELEctions from updating package versions: barbatus:angular2 upgraded from 0.6.6 to 0.7.3 barbatus:ng2-compilers upgraded from 0.1.0 to 0.1.1 barbatus:ts-compilers upgraded from 0.1.8 to 0.1.9_5 barbatus:typescript upgraded from 0.1.3 to 0.1.3_3 urigo:angular2-meteor upgraded from 0.2.5 to 0.3.5
重启流星:
@H_999_9@meteor => Started proxy. => Started MongoDB. ***** New typings have been added ***** | typings/angular2/core.d.ts typings/angular2/common.d.ts typings/angular2/bootstrap.d.ts typings/angular2/platform/browser.d.ts typings/es6-promise/es6-promise.d.ts typings/es6-shim/es6-shim.d.ts ***** Please re-start your app ***** meteor => Started proxy. => Started MongoDB. => Started your app. => App running at: http://localhost:3000/
在你的应用程序中更改行:
import {Component,View,bootstrap} from 'angular2/angular2';
至:
import {Bootstrap} from 'angular2/platform/browser' import {Component,View} from 'angular2/core';
希望能帮助到你.
更新:
我发现http://ng-meteor.meteor.com/tutorials/angular2/已被弃用.我建议你改用http://www.angular-meteor.com/tutorials/socially/angular2/.
以上是大佬教程为你收集整理的在流星更新后,angular2-meteor样本停止工作全部内容,希望文章能够帮你解决在流星更新后,angular2-meteor样本停止工作所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。