Windows下,编译路径获取错误
错误代码:node_modules@morjs\plugin-compiler-web\lib\plugins\emitIntermediateAssetsPlugin.js await utils_1.fsExtra.outputFile(path_1.default.join(intermediateAssetsDir, path_1.default.resolve('/', filePath)), source);
信息如何下: [mor] ℹ 准备配置中, 即将开始编译 👇 配置名称: web 编译目标: Web 应用 编译环境: development 编译类型: 小程序 编译模式: bundle 源码类型: wechat 源码目录: src 输出目录: dist\web [mor] ℹ 已开启缓存, 可通过 --no-cache 关闭 [mor] ℹ 已开启 web 转端中间产物输出: .mor\compiler\intermediate-assets\web [mor] ℹ 开始编译 ... [mor] ℹ 依赖分析中 ... [mor] ℹ 依赖分析完成: 耗时: 417.9389 ms [mor] ⠏ 正在编译, 进度: 10.00% Debugger ending on ws://127.0.0.1:5858/1802ce6f-c74e-440d-9695-ef1a8c918f7b [mor] ✔ 编译完成, 耗时: 2377504.3526 ms
[mor] ✖ 编译 ./mor-entries/app.jsx 失败:
=> Module build failed (from ../node_modules/@morjs/plugin-compiler/lib/loaders/postprocessLoader.js):
Error: Path contains invalid characters: C:\Work\MusicLabs\morjs\examples\wechat.mor\compiler\intermediate-assets\web\C:\src\mor-entries
at checkPath (C:\Work\MusicLabs\morjs\examples\wechat\node_modules\fs-extra\lib\mkdirs\utils.js:16:21)
at module.exports.makeDir (C:\Work\MusicLabs\morjs\examples\wechat\node_modules\fs-extra\lib\mkdirs\make-dir.js:12:3)
at Object.