Mobile Meteor应用程序崩溃,即使代码被认为是正确的

Mobile Meteor应用程序崩溃,即使代码被认为是正确的,mobile,meteor,ionic,Mobile,Meteor,Ionic,我在做这件事。这个问题也许最适合读过这篇文章的人 完全按照给定的方式编写代码,但是当我在第一篇文章的末尾运行应用程序时,我不断得到“你的应用程序正在崩溃”和“退出代码:8” 以下是浏览器上显示的日志: Your app is crashing. Here's the latest log. /Users/hmm/.meteor/packages/meteor-tool/.1.1.4.jggotu++os.osx.x86_64+web.browser+web.cordova/mt-os.osx

我在做这件事。这个问题也许最适合读过这篇文章的人

完全按照给定的方式编写代码,但是当我在第一篇文章的末尾运行应用程序时,我不断得到“你的应用程序正在崩溃”和“退出代码:8”

以下是浏览器上显示的日志:

Your app is crashing. Here's the latest log. 

/Users/hmm/.meteor/packages/meteor-tool/.1.1.4.jggotu++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
                        throw(ex);
                              ^
Error: Invariant Violation: You cannot use <HistoryLocation> without a DOM
    at invariant (packages/node_modules/react/lib/invariant.js:42:1)
    at createRouter (lib/node_modules/react-router/lib/createRouter.js:131:1)
    at Object.runRouter [as run] (lib/node_modules/react-router/lib/runRouter.js:40:1)
    at ./router.jsx:11:15
    at /Users/hmm/hmmmm/.meteor/local/build/programs/server/boot.js:229:5
Exited with code: 8
Your application is crashing. Waiting for file change.
你的应用程序正在崩溃。这是最新的日志。
/Users/hmm/.meteor/packages/meteor tool/.1.1.4.jgotu++os.osx.x86_64+web.browser+web.cordova/mt os.osx.x86_64/dev_bundle/server lib/node_modules/fibers/future.js:245
投掷(ex);
^
错误:不变冲突:如果没有DOM,则无法使用
at invariant(packages/node_modules/react/lib/invariant.js:42:1)
在createRouter(lib/node_modules/react router/lib/createRouter.js:131:1)
在Object.runRouter[as run](lib/node_modules/react router/lib/runRouter.js:40:1)
在./router.jsx:11:15
在/Users/hmm/hmmmm/.meteor/local/build/programs/server/boot.js:229:5
已退出,代码:8
你的应用程序正在崩溃。正在等待文件更改。

如果有人能帮我找出哪里出了问题以及我该怎么做,我将不胜感激。我写的代码与文章中给出的代码完全相同(因此我感到困惑)

解决方案是更改文件夹的顺序

你能详细说明一下吗?我遇到了一个类似的错误,我似乎无法解决它。在我的例子中,有一个子文件夹需要是父文件夹。