启动时出现Angular 8错误

问题描述

当我使用“ ng serve”命令启动角度应用程序时,我在chrome开发人员工具控制台中看到以下错误:

Angular is running in the development mode. Call enableProdMode() to enable the production mode.
index.js:7 Error: Invalid value type
    at Function.a.set (index.js:7)
    at t.setIsTrutedEnforced (index.js:7)
    at index.js:49
a.set @ index.js:7
t.setIsTrutedEnforced @ index.js:7
(anonymous) @ index.js:49
Promise.then (async)
h @ index.js:49
(anonymous) @ index.js:49
(anonymous) @ index.js:7
n @ index.js:49
index.js:7 Uncaught (in promise) Error: Given action "NormalMode/SetPageData",reducer "isTrustedEnforced" returned undefined. To ignore an action,you must explicitly return the previous state. If you want this reducer to hold no value,you can return null instead of undefined.
    at index.js:7
    at Object.g [as dispatch] (index.js:7)
    at t.SetPageData (index.js:7)
    at index.js:49

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)