2017-03-03 88 views
0

我正在转换旧的angular2项目,以便使用meteor作为基于ionic2-meteor whatsapp教程的项目的管理面板样式。Angular2-meteor不能读取属性“meteorInstall”

所以我在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 

我想我可能错过了导入或其他地方的东西,但无法解决问题。

任何帮助都会很棒。

这些是我安装的软件包。

[email protected]    
[email protected]  
[email protected]     
[email protected]    
[email protected]     
[email protected] 
[email protected] 
[email protected] 
[email protected] 
[email protected] 
[email protected] 
angular2-compilers 
barbatus:typescript 
[email protected] 
[email protected] 
[email protected] 
reywood:publish-composite 
[email protected] 
alanning:roles 
[email protected] 
dispatch:mocha-phantomjs 
tmeasday:publish-counts 
hwillson:stub-collections 
practicalmeteor:mocha 
xolvio:cleaner 

〜编辑

///错误来自@角/ 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; 
}()); 

回滚和前进根本没有帮助。

+0

meteorInstall错误即将发生,因为modules.js不是编译的,而是其他所有需要的。 我看着导致模块文件错误的行,我看不到是什么导致错误 我已经在问题中发布它。 –

回答

1

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

+0

是的,我们最终重建了这个项目,发现有几件事导致它发生,所以我们决定不使用这些插件,而是使用其他插件。 –