加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Angular 5 – 未捕获的ReferenceError:未定义req

发布时间:2020-12-17 17:57:19 所属栏目:安全 来源:网络整理
导读:我最近将我的运行项目从Angular 4.4.3更新为Angular5.我根据更新指南将所有角度包更新到Angular 5.0.0. 另外,我还将角度CLI更新为1.5.0.从那时起,我在控制台中遇到以下错误: polyfills.b8a5e5b….bundle.js:1 Uncaught ReferenceError: req is not defined
我最近将我的运行项目从Angular 4.4.3更新为Angular5.我根据更新指南将所有角度包更新到Angular 5.0.0.

另外,我还将角度CLI更新为1.5.0.从那时起,我在控制台中遇到以下错误:

polyfills.b8a5e5b….bundle.js:1 Uncaught ReferenceError: req is not defined
    at polyfills.b8a5e5b….bundle.js:1
    at polyfills.b8a5e5b….bundle.js:1
    at polyfills.b8a5e5b….bundle.js:1
    at Function.r.__load_patch (polyfills.b8a5e5b….bundle.js:1)
    at polyfills.b8a5e5b….bundle.js:1
    at c (polyfills.b8a5e5b….bundle.js:1)
    at Object.<anonymous> (polyfills.b8a5e5b….bundle.js:1)
    at Object.eFQL (polyfills.b8a5e5b….bundle.js:1)
    at n (inline.904a54f….bundle.js:1)
    at Object.TU+8 (polyfills.b8a5e5b….bundle.js:1)

我在这里错过了什么吗?

解决方法

删除node_modules并运行npm install.

这个对我有用.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读