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

时间:2018-01-03 12:51:19

标签: angular jhipster

我使用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

at

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

,错误信息是,

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

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

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

1 个答案:

答案 0 :(得分:1)

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