我已经尝试了大约一两天找到解决这个问题但没有喘息的机会。我已经成功编译了我的webapp,最终显示了这个:
C:\Users**\blog-frontend> ng server
** NG Live Development Server is listening on localhost:4200, open your
browser on http://localhost:4200/ **
Date: 2018-04-06T13:31:08.322Z
Hash: 48515e0683186879850d
Time: 19187ms
chunk {inline} inline.bundle.js (inline) 3.85 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 18 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 554 kB [initial]
[rendered]
chunk {styles} styles.bundle.js (styles) 41.5 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 7.42 MB [initial] [rendered]
webpack: Compiled successfully.
但是当我转到mozilla或chrome并在url中输入localhost:4200时它没有连接并最终显示连接超时。我不知道问题是什么,从角度来看它看起来不错,但从网络和端口方面看,它们可能有些问题。