角度项目中的 mini-extract-css-plugin 问题

问题描述

我正在尝试从 webpack 迁移到 angular-cli,在构建项目时,我遇到了以下错误

    while (Character.compare(str1.charat(i),str2.charat(i))  == 0){
            i++;
    }

我没有使用自定义 webpack,因此它在内部使用,因为依赖关系 Module build Failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): TypeError: Cannot read property 'replace' of undefined at normalizeBackSlashDirection (/home/User1/GIT/project1/node_modules/webpack/lib/RequestShortener.js:16:17) at new RequestShortener (/home/User1/GIT/project1/node_modules/webpack/lib/RequestShortener.js:26:15) at new Compiler (/home/User1/GIT/project1/node_modules/webpack/lib/Compiler.js:195:27) at Compiler.createChildCompiler (/home/User1/GIT/project1/node_modules/webpack/lib/Compiler.js:558:25) at Compilation.createChildCompiler (/home/User1/GIT/project1/node_modules/webpack/lib/Compilation.js:2243:24) at Object.pitch (/home/User1/GIT/project1/node_modules/mini-css-extract-plugin/dist/loader.js:66:43)

这里可能有什么问题?

解决方法

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

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

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