jhipster应用程序无法运行--没有明显的错误。

问题描述 投票:0回答:1

我试图运行一个基本的Jhipster应用程序,从下面的内容来看 .jdl 文件。

我运行以下命令。

  1. jhipster import-jdl sample.jdl
  2. ./mvnw
  3. 构建完成后,我打开浏览器 http:/127.0.1.1:8080

从那里我看到以下错误。

enter image description here

JDL文件

application {
  config {
    baseName sample,
    applicationType monolith,
    packageName com.sample.myapp,
    prodDatabaseType postgresql,
    cacheProvider infinispan,
    buildTool maven,
    useSass true,
    testFrameworks [protractor]
  }
  entities *
}


entity Parent {
  symbol String unique
  description String
}

entity Child {
  location String unique
  comment String
  balance Long
  childType ChildType
}


enum ChildType {
    ALPHA,
    BETA
}


relationship OneToMany {    
    Parent to Child
}

日志

该日志可在以下网站查看 https:/gist.github.commagick9372354c7f20c52180b0ffa53ae5b6b70b。

版本

爪哇

openjdk 12.0.2 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

节点

  • node v12.16.2
  • npm 6.14.4

npm 6.14.4

INFO! Using JHipster version installed locally in current project's node_modules

额外

我也试过

  1. npm install
  2. npm start
  3. jhipster import-jdl sample.jdl
  4. ./mvnw

但仍然得到同样的错误

jhipster
1个回答
0
投票

正如它所说,问题是由于 npm install 没有正常运行!

试着依次运行以下命令。

npm install

npm start

然后尝试导入你的.jdl或.jh文件。

jhipster import-jdl sample.jdl

然后

./mvnw

0
投票

请原谅我,如果这听起来很愚蠢。但你用的是哪个浏览器?

我在使用Firefox 75.0时也有类似的行为。当我启动一个vanilla jhipster生成的应用程序时 就会出现上面的错误 而且我可以看到没有调用后台。JavaScript控制台只打印了

"TypeError: clazz.decorators is undefined"

当我使用Chrome浏览器时,该应用程序似乎工作得很好(再次强调:没有添加任何实体的普通jhipster应用程序)。

© www.soinside.com 2019 - 2024. All rights reserved.