Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows下,编译路径获取错误 #145

Open
jinsongzhao opened this issue Jan 6, 2024 · 0 comments
Open

Windows下,编译路径获取错误 #145

jinsongzhao opened this issue Jan 6, 2024 · 0 comments

Comments

@jinsongzhao
Copy link

jinsongzhao commented Jan 6, 2024

错误代码: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. (C:\Work\MusicLabs\morjs\examples\wechat\node_modules\universalify\index.js:21:10)
at C:\Work\MusicLabs\morjs\examples\wechat\node_modules\fs-extra\lib\output-file\index.js:20:11
at C:\Work\MusicLabs\morjs\examples\wechat\node_modules\universalify\index.js:21:38
[mor] ✖ 编译错误, 请检查相关报错信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant