jhipster app提供不同的eTLD + 1错误(angular 2+和mysql app)

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

我使用jhipster在线应用程序生成器生成了带有MySql后端的jhipster monolith应用程序和带有Angular 2(最新版本)的应用程序。当我在Spring工具套件中运行应用程序时,我收到了消息:

Application 'sample' is running! Access URLs:
    Local:      http://localhost:8080
    External:   http://10.189.116.206:8080
    Profile(s):     [swagger, dev]

但是在我尝试访问的浏览器中,localhost:8080,我收到消息说,您的请求无法处理error并且在控制台中我有警告:

fixurl.js:149 A parser-blocking, cross site (i.e. different eTLD+1) script, https://linkhelp.clients.google.com/tbproxy/lh/wm?sourceid=wm&url=http%3A%2F%2Flocalhost%3A8080%2F&hl=en&site=localhost%3A8080&error=http404&js=true, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
pb @ fixurl.js:149

在我的项目注意到节点模块下,以下文件显示错误消息

/sample/node_modules/@schematics/angular/application/files/__dot__angular-cli.json

 }<% if (serviceWorker) { %>,
      "serviceWorker": true<% } %>
    }

并且错误消息是,

Expected ',' or '}' at 29:7

到目前为止,我还没有对此文件进行任何更改。但我仍然收到此错误消息。

任何人都可以帮我解决这个问题吗?

angular jhipster
1个回答
1
投票

在开发中你必须运行mvnw / gradlew(java服务器)和yarn / npm start(webpack服务器),然后你的浏览器将打开webpack url。请参阅http://www.jhipster.tech/using-angular/和您的项目README.md

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