【问题标题】:Jhipster: application is running but no output on the browserJhipster:应用程序正在运行但浏览器上没有输出
【发布时间】:2018-03-16 10:59:24
【问题描述】:

安装 Jhipster 并使用 yarn 运行我的应用程序后,该应用程序在终端上运行,但在我的浏览器上没有任何显示,控制台中出现以下错误消息:

ERROR Error: The selector "jhi-main" did not match any elements
    at DefaultDomRenderer2.selectRootElement (platform-browser.es5.js?41b7:2791)
    at DebugRenderer2.selectRootElement (core.es5.js?de3d:13633)
    at createElement (core.es5.js?de3d:9172)
    at createViewNodes (core.es5.js?de3d:12146)
    at createRootView (core.es5.js?de3d:12075)
    at callWithDebugContext (core.es5.js?de3d:13458)
    at Object.debugCreateRootView [as createRootView] (core.es5.js?de3d:12775)
    at ComponentFactory_.create (core.es5.js?de3d:9858)
    at ComponentFactoryBoundToModule.create (core.es5.js?de3d:3333)
    at ApplicationRef_.bootstrap (core.es5.js?de3d:4763)

我能做些什么来解决它?

【问题讨论】:

    标签: java angular spring-boot jhipster


    【解决方案1】:

    检查您的 index.html 文件。 src->main->webapp->index.html

    <jhi-main></jhi-main>
    

    screenshot from my workspace / index.html

    【讨论】:

      猜你喜欢
      • 2023-02-03
      • 2016-09-28
      • 1970-01-01
      • 1970-01-01
      • 2011-10-26
      • 2020-03-01
      • 2019-07-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多