Angular2-meteor读取属性“meteorInstall”

时间:2017-03-03 03:57:42

标签: angular-meteor angular2-meteor

我正在将一个旧的angular2项目转换为使用meteor作为基于ionic2-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;
}());

前后滚动并没有任何帮助。

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。对我来说,这是由于最近安装了离子插件。删除该插件后,它已开始正常工作。请尝试删除最近添加的插件。我希望你现在已经尝试过了。