【发布时间】:2020-12-18 05:57:44
【问题描述】:
当我使用“ng serve”命令启动 Angular 应用程序时,我在 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
【问题讨论】:
-
此处与边缘和角度 10 相同
-
Chrome 也出现此错误。有什么想法吗?
标签: node.js angular typescript nodes angular8