流星应用程序崩溃localhost:3000

Meteor app crashing localhost:3000

本文关键字:3000 localhost 崩溃 应用程序 流星      更新时间:2023-09-26

我正在尝试运行boostrap/metetor文件。我得到这个错误

你的应用程序正在崩溃。这是最新的日志。

C:'Users'andrew'AppData'Local'.meteor'packages'meteor-tool'1.1.3'mt-os.windows.x86_32'dev_bundle'server-lib'node_modules'fibers'future.js:245
                        throw(ex);
                              ^
Error: Bootstrap's JavaScript requires jQuery
    at app'bootstrap-3.3.4-dist'js'bootstrap.js:8:9
    at app'bootstrap-3.3.4-dist'js'bootstrap.js:2319:3
    at C:'Users'andrew'Desktop'teetimesM'teetimesM'.meteor'local'build'programs'server'boot.js:222:10
    at Array.forEach (native)
    at Function._.each._.forEach (C:'Users'andrew'AppData'Local'.meteor'packages'meteor-tool'1.1.3'mt-os.windows.x86_32'dev_bundle'server-lib'node_modules'underscore'underscore.js:79:11)
    at C:'Users'andrew'Desktop'teetimesM'teetimesM'.meteor'local'build'programs'server'boot.js:117:5
Exited with code: 8
Your application is crashing. Waiting for file change.

我有所有的jQuery标签包括以及标签到所有的js文件。

>

我错过了什么,或者我如何纠正这一点?

不需要添加jQuery包(它与meteor捆绑在一起),也不需要添加任何脚本标记。删除你的脚本标签,在终端的app目录中输入meteor add twbs:bootstrap(或者使用你喜欢的bootstrap包)。