Jhipster:应用程序正在运行但浏览器上没有输出
问题描述:
安装Jhipster并使用yarn运行应用程序后,应用程序在终端上运行,但在浏览器上没有任何警报,控制台中有一条错误消息,它是以下:Jhipster:应用程序正在运行但浏览器上没有输出
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)
我该怎么做才能解决它?
答
检查您的index.html文件。 SRC-> main-> webapp->的index.html
<jhi-main></jhi-main>