java - 为什么新建的Jhipster项目body height=0?

标签 java html angularjs jhipster

我刚刚创建了我的第一个 jhipster 应用程序,并按照有关如何设置我的 IDE (eclipse) 的说明进行操作。

之后,我运行了 gradle bootRun 任务(在 eclipse 中),一切顺利。

当我访问本地主机地址时,页面是空白的。在 firefox (f12) 中调查这个问题,它显示 body 的高度为 0。

在尝试通过在 index.html 文件中将其高度手动设置为 100vt 来手动拉伸(stretch) html 正文之后,通过 f12 进行的另一项调查显示,应用了新设置(现在高度为 100vt),但页面仍然空白。

可能是什么问题?我已经确认,所有需要的文件都存在,所以它不可能是找不到文件问题

有趣的是,页面的名称显示在选项卡中。由于名称在 index.html 的 header 中定义,因此文件必须正确部署,但生成的部分必须存在某种问题。

编辑

运行 yarn run webpack:build

yarn run v0.23.2
$ yarn run cleanup && yarn run webpack:build:vendor && yarn run webpack:build:dev
yarn run v0.23.2
$ rimraf build/{aot,www}
The command "rimraf" is either spelled incorrectly or could not be found
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

编辑 2

正如有人在评论中提到的,我可能必须运行 yarn install,但这给了我以下错误,我根本不明白...

error C:\CUBE\workspace\cube\node_modules\generator-jhipster: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c tabtab install --name jhipster --auto
Directory: C:\CUBE\workspace\cube\node_modules\generator-jhipster
Output:
Fri, 30 Jun 2017 14:40:09 GMT tabtab:installer Installing completion script to fish directory
fs.js:641
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT: no such file or directory, open 'C:\CUBE\workspace\cube\node_modules\tabtab\scripts\C:\Program Files\Git\usr\bin\bash.sh'
    at Error (native)
    at Object.fs.openSync (fs.js:641:18)
    at fs.readFileSync (fs.js:509:33)
    at Complete.script (C:\CUBE\workspace\cube\node_modules\tabtab\src\complete.js:373:14)
    at Installer.writeTo (C:\CUBE\workspace\cube\node_modules\tabtab\src\installer.js:91:34)
    at Installer.handle (C:\CUBE\workspace\cube\node_modules\tabtab\src\installer.js:80:21)
    at Commands.install (C:\CUBE\workspace\cube\node_modules\tabtab\src\commands\index.js:75:22)
    at Object.<anonymous> (C:\CUBE\workspace\cube\node_modules\tabtab\src\cli.js:33:16)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

最佳答案

我终于找到了解决方案:

当使用 git bash 生成应用程序时,windows 上的生成计划似乎有问题。

我使用 windows cmd 重新生成了应用程序,一切都按预期工作了......

关于java - 为什么新建的Jhipster项目body height=0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44847063/

相关文章:

java - 使用 Java 7 API 逐字节读取文件

java - 将文件转换为十六进制转储

html - Sass Mixin 值未在从@include 调用时传递

javascript - html5 : link to the #id of a div at a certain point on the page

javascript - 选择选项上的 Bootstrap 工具提示不起作用

javascript - Angular.js 中的 Utils 类

java - 当我向排行榜 android 提交分数时应用程序崩溃

java - 在 MySQL 中插入来自 java 的日期时间字符串

html - 使 Angular Material 数据表行滚动,同时保持标题的粘性

javascript - 检查JSON响应数据是否为空