小编Ama*_*man的帖子

关键依赖关系:require函数的使用方式是无法静态提取依赖关系

"ng serve"中是否有人面临以下警告?

警告在./node_modules/@angular/compiler/src/util.js 10:24-31严重依赖:require函数的使用方式是无法静态提取依赖关系ℹ"wdm":编译时带有警告.

角度版本:

Angular CLI:6.0.8节点:8.11.3操作系统:darwin x64 Angular:6.0.9 ...动画,通用,编译器,编译器 - cli,核心,表单... http,语言服务,平台浏览器..平台浏览器动态,路由器,升级

我尝试更新CLI和Angular但没有成功.util.js中的代码如下所示:

function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define("@angular/compiler/src/util", ["require", "exports"], factory);
    }
}
Run Code Online (Sandbox Code Playgroud)

typescript angular angular6

43
推荐指数
5
解决办法
2万
查看次数

标签 统计

angular ×1

angular6 ×1

typescript ×1