3***@qq.com
3***@qq.com
  • 发布:2024-08-17 10:39
  • 更新:2024-08-21 08:56
  • 阅读:227

下载 hello-uni-app-x-alpha 示例运行报错,没动过任何代码

分类:uni-app x

10:22:01.466 项目 hello-uni-app-x-alpha 开始编译
10:22:03.846 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
10:22:03.846 vite是按需编译,运行时点击某个未编译页面会先编译后加载,导致显示较慢,发行后无此问题。
10:22:03.853 编译器版本:4.24(uni-app x)
10:22:03.853 正在编译中...
10:22:06.999 error when starting dev server:
10:22:06.999 TypeError: Cannot convert undefined or null to object
10:22:06.999 at Function.keys (<anonymous>)
10:22:06.999 at normalizeStyles (D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.cjs.js:1586:12)
10:22:06.999 at D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.cjs.js:1594:32
10:22:06.999 at Array.map (<anonymous>)
10:22:06.999 at parseStyleItem (D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.cjs.js:1592:34)
10:22:07.000 at D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.cjs.js:1599:23
10:22:07.000 at Array.forEach (<anonymous>)
10:22:07.000 at normalizeStyles (D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.cjs.js:1586:28)
10:22:07.000 at D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-shared\dist\uni-shared.cjs.js:1594:32
10:22:07.000 at Array.map (<anonymous>)
10:22:07.037 已停止运行...

2024-08-17 10:39 负责人:无 分享
已邀请:
BFC

BFC

你好,把这个hello-uni-app-x-alpha 示例下载地址或者下载命令发一下,我这边验证一下

  • 3***@qq.com (作者)

    https://doc.dcloud.net.cn/uni-app-x/ 页面中的tip:

    hello uni-app x的源码见:https://gitcode.net/dcloud/hello-uni-app-x

    2024-08-19 22:22

BFC

BFC

你好,你这个是alpha的模板代码, 需要用最新的hbuilderX 的alpha版运行

  • 3***@qq.com (作者)

    当时我也下载了hbuilderX 的alpha版,运行结果一样

    2024-08-21 08:50

3***@qq.com

3***@qq.com (作者)

  • BFC

    最新的alpha会近期发版,先用正式版的模板吧

    2024-08-21 10:20

要回复问题请先登录注册