1
- 发布:2021-02-03 16:35
- 更新:2021-02-22 14:28
- 阅读:1227
产品分类: uniapp/H5
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.14.6
HBuilderX类型: Alpha
HBuilderX版本号: 3.1.0
浏览器平台: Chrome
浏览器版本: 86.0
项目创建方式: HBuilderX
操作步骤:
预期结果:
1
1
实际结果:
1
1
bug描述:
cross-env NODE_ENV=production uniapp-cli custom "h5-weixin"
@dcloudio/uni-h5 缺少 uni.config.js
⠋ 开始编译当前项目至 h5 平台...
uni-app 有新版本发布,请执行 npm update 更新,更新日志详见:https://update.dcloud.net.cn/hbuilderx/changelog/3.0.7.20210109-alpha.html
⠋ 开始编译当前项目至 h5 平台...[BABEL] Note: The code generator has deoptimised the styling of /Users/hanye/Documents/我的电脑/htdocs/元知/web-patient/src/pagesIM/common/tim/tim-js.js as it exceeds the max of 500KB.
⠦ 开始编译当前项目至 h5 平台...
ERROR Failed to compile with 58 errors 16:27:43
These dependencies were not found:
- /Users/hanye/Documents/我的电脑/htdocs/元知/web-patient/node_modules/@dcloudio/uni-h5/src/core/helpers/console in ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js, ./node_modules/better-scroll/dist/better-scroll.esm.js and 55 others
- uni-h5 in ./src/main.js
To install them, you can run: npm install --save /Users/hanye/Documents/我的电脑/htdocs/元知/web-patient/node_modules/@dcloudio/uni-h5/src/core/helpers/console uni-h5
INFO Build optimizing...
Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-alpha-project@0.1.0 build:custom: cross-env NODE_ENV=production uniapp-cli custom "h5-weixin"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-alpha-project@0.1.0 build:custom script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hanye/.npm/_logs/2021-02-03T08_27_44_036Z-debug.log
bogon:web-patient jinbiao$
1 个回复
DCloud_UNI_GSQ
复现步骤描述一下