我正在转换一个旧的angular2项目,使用meteor作为一个基于I 2-meteor whatsapp教程的项目的管理面板样式的东西。
因此,我在api内的客户端文件夹中构建网站。
我非常确定我已经为angular2客户端做了正确的事情(基于旧的社交教程)。
不过,我把它们当作错误来处理。
modules.js:13538 Uncaught SyntaxError: Unexpected token export
es5-shim.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at es5-shim.js:17
at es5-shim.js:2789
promise.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at promise.js:17
at promise.js:582
ecmascript-runtime.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at ecmascript-runtime.js:17
at ecmascript-runtime.js:4630
babel-runtime.js:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at babel-runtime.js:17
at babel-runtime.js:160
random.js:18 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at random.js:18
at random.js:368我想我可能错过了一个导入或某处的东西,但是我不知道在哪里。
任何帮助都是很棒的。
这些是我安装的包。
meteor-base@1.0.4
mobile-experience@1.0.4
mongo@1.1.15
reactive-var@1.0.11
jquery@1.11.10
tracker@1.1.2
standard-minifier-css@1.3.3
standard-minifier-js@1.2.2
es5-shim@4.6.15
ecmascript@0.6.3
shell-server@0.2.2
angular2-compilers
barbatus:typescript
accounts-base@1.2.14
npm-bcrypt@0.9.2
accounts-password@1.3.4
reywood:publish-composite
http@1.2.11
alanning:roles
check@1.2.4
dispatch:mocha-phantomjs
tmeasday:publish-counts
hwillson:stub-collections
practicalmeteor:mocha
xolvio:cleaner~编辑
/错误来自@angular/http模块,我将尝试回滚它,看看是否有帮助。
/**
* \@experimental
*
*/
export var QueryEncoder = (function () {//<---- this is the line causing the error
function QueryEncoder() {
}
QueryEncoder.prototype.encodeKey = function (k) { return standardEncoding(k); };
QueryEncoder.prototype.encodeValue = function (v) { return standardEncoding(v); };
return QueryEncoder;
}());回滚和向前回滚根本没有任何帮助。
发布于 2017-03-15 13:13:38
我也有同样的问题。对我来说,这是由于最近安装的离子插件。移除该插件后,它已开始正常工作。请尝试删除您最近添加的插件。我希望你现在已经尝试过了。
https://stackoverflow.com/questions/42570396
复制相似问题