Meteor构建TypeError:module.import不是函数

时间:2016-11-08 00:42:02

标签: meteor

在过去的几天里,我一直遇到麻烦。我转移到流星1.4.2,我不确定这是不是问题。我试着回到Meteor 1.4.1.3,但问题仍然存在

我得到的错误是

W20161108-11:17:17.631(11)? (STDERR) /Users/mikkel/senecto/memberapp/.meteor/local/build/programs/server/boot.js:333
W20161108-11:17:17.632(11)? (STDERR) }).run();
W20161108-11:17:17.632(11)? (STDERR)    ^
W20161108-11:17:17.632(11)? (STDERR)
W20161108-11:17:17.632(11)? (STDERR) TypeError: module.import is not a function
W20161108-11:17:17.633(11)? (STDERR)     at meteorInstall.node_modules.meteor.webapp.webapp_server.js (/Users/mikkel/senecto/memberapp/.meteor/local/build/programs/server/packages/webapp.js:33:26)
W20161108-11:17:17.633(11)? (STDERR)     at fileEvaluate (packages/modules-runtime/packages/modules-runtime.js:171:1)
W20161108-11:17:17.633(11)? (STDERR)     at require (packages/modules-runtime/packages/modules-runtime.js:96:1)
W20161108-11:17:17.633(11)? (STDERR)     at /Users/mikkel/senecto/memberapp/.meteor/local/build/programs/server/packages/webapp.js:842:1
W20161108-11:17:17.633(11)? (STDERR)     at /Users/mikkel/senecto/memberapp/.meteor/local/build/programs/server/packages/webapp.js:855:3
W20161108-11:17:17.633(11)? (STDERR)     at /Users/mikkel/senecto/memberapp/.meteor/local/build/programs/server/boot.js:292:10
W20161108-11:17:17.633(11)? (STDERR)     at Array.forEach (native)
W20161108-11:17:17.634(11)? (STDERR)     at Function._.each._.forEach (/Users/mikkel/.meteor/packages/meteor-tool/.1.4.1_3.89kw9a++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20161108-11:17:17.634(11)? (STDERR)     at /Users/mikkel/senecto/memberapp/.meteor/local/build/programs/server/boot.js:128:5
=> Exited with code: 1

我不明白什么是错误,流星重置没有效果,也没有删除构建目录。

有什么想法吗?

1 个答案:

答案 0 :(得分:3)

正如评论中所确认的,删除~/.meteor可以解决此问题。删除此目录后,Meteor将重新安装所有软件包,包括。核心包。