Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Angular 6,为什么http.get()不检索我的静态数据?_Angular_Https - Fatal编程技术网

使用Angular 6,为什么http.get()不检索我的静态数据?

使用Angular 6,为什么http.get()不检索我的静态数据?,angular,https,Angular,Https,我在Linux上安装了一个Node.js服务器,使用SSL和CORS包运行。我可以使用HTTPS协议从Firefox中的Windows访问我的网站: https://<host-name>:<port>/ 我使用以下命令生成: ng build --aot --base-href=/testing-area/ 我无法剪切/粘贴整个堆栈跟踪,但我将在此处尽可能多地键入: "Err is: Array.from is not a function" (main.js:29

我在Linux上安装了一个Node.js服务器,使用SSL和CORS包运行。我可以使用HTTPS协议从Firefox中的Windows访问我的网站:

https://<host-name>:<port>/
我使用以下命令生成:

ng build --aot --base-href=/testing-area/
我无法剪切/粘贴整个堆栈跟踪,但我将在此处尽可能多地键入:

"Err is: Array.from is not a function" (main.js:290)
"ERROR" TypeError: a[getSymbolIterator(...)] is not a function (main.js:393)
 stack trace:
 areIterablesEqual@https://<host-name>:<port>/testing-area/vendor.js:13061:9
 devModeEqual@https://<host-name>:<port>/testing-area/vendor.js:12990:9
 {more stuff}
"ERROR CONTEXT" Object(view: Object, nodeIndex: 4, nodeDef: Object, elDef: 
                       Object, elView: Object) (main.js:393)
"ERROR" TypeError: a[getSymbolIterator(...)] is not a function (main.js:393)
 stack trace:
 {same stuff}
“Err is:Array.from不是函数”(main.js:290)
“ERROR”TypeError:a[GetSymbolicaterator(…)]不是函数(main.js:393)
堆栈跟踪:
areIterablesEqual@https://:/testing area/vendor.js:13061:9
devModeEqual@https://:/testing area/vendor.js:12990:9
{更多内容}
“错误上下文”对象(视图:对象,节点索引:4,节点定义:对象,节点定义:
对象,elView:Object)(main.js:393)
“ERROR”TypeError:a[GetSymbolicaterator(…)]不是函数(main.js:393)
堆栈跟踪:
{同样的东西}

为了解决这个问题,我刚刚将Firefox浏览器从31版升级到38.5.2版。一旦我这样做并重新加载我的应用程序,就不会出现任何错误(之前在我的问题中列出)。而且,我的静态数据终于如期到达。

请同时发布您的服务。如果需要提交更多信息,请让我知道我还可以包括哪些内容。
ng build --aot --base-href=/testing-area/
"Err is: Array.from is not a function" (main.js:290)
"ERROR" TypeError: a[getSymbolIterator(...)] is not a function (main.js:393)
 stack trace:
 areIterablesEqual@https://<host-name>:<port>/testing-area/vendor.js:13061:9
 devModeEqual@https://<host-name>:<port>/testing-area/vendor.js:12990:9
 {more stuff}
"ERROR CONTEXT" Object(view: Object, nodeIndex: 4, nodeDef: Object, elDef: 
                       Object, elView: Object) (main.js:393)
"ERROR" TypeError: a[getSymbolIterator(...)] is not a function (main.js:393)
 stack trace:
 {same stuff}