新建项目,直接运行

- 发布:2023-11-25 17:37
- 更新:2025-04-30 16:27
- 阅读:438
产品分类: uniapp/H5
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 11
HBuilderX类型: 正式
HBuilderX版本号: 3.98
浏览器平台: Edge
浏览器版本: 最新
项目创建方式: HBuilderX
操作步骤:
预期结果:
新建项目,直接运行
新建项目,直接运行
实际结果:
新建项目,直接运行
新建项目,直接运行
bug描述:
17:35:48.916 项目 'xr-gpt' 开始编译...
[JSHINT] 17:35:49.141 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 16, This character may get silently deleted by one or more browsers.
[JSHINT] 17:35:49.141 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 1, Expected an identifier and instead saw '%'.
[JSHINT] 17:35:49.144 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 2, Missing semicolon.
[JSHINT] 17:35:49.145 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 13, Expected an identifier and instead saw '#'.
[JSHINT] 17:35:49.150 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 14, Missing semicolon.
[JSHINT] 17:35:49.150 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 14, Expected an identifier and instead saw '#'.
[JSHINT] 17:35:49.154 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 15, Missing semicolon.
[JSHINT] 17:35:49.154 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 15, Expected an identifier and instead saw '#'.
[JSHINT] 17:35:49.159 C:/Users/chen/HBuilderProjects/xr-gpt/manifest.json: line 1, col 17, Unexpected '
17:35:49.170 项目 'xr-gpt' 编译失败。
3 个回复
YUANRJ
提供下可复现的工程
1***@qq.com
遇到同样的问题,编译的时候行尾序列会转为LF,有人知道怎么解决吗
DCloud_UNI_JBB
麻烦提供一个可复现的demo
2025-04-30 15:58
1***@qq.com
回复 DCloud_UNI_JBB: 新创建的项目也会这样,好像是行尾序列格式的问题,有的是LF,有的是CRLF
2025-04-30 16:26
1***@qq.com