g***@163.com
g***@163.com
  • 发布:2024-08-29 15:51
  • 更新:2024-08-29 15:51
  • 阅读:668

微信小程序报错:ReferenceError: process is not defined

分类:HBuilderX

vue3开发
通过hbuild直接打包/发行小程序,页面打不开,网上也查了一些案例,但是解决比较麻烦,请问有过类似经验的朋友吗?你们都怎么解决的。hbuild,小程序开发者工具都是最新的

报错:
app.js错误:
ReferenceError: process is not defined
at Mime.define (vendor.js? [sm]:16012)
at vendor.js? [sm]:16041
at require (WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2)
at r (WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2)
at app.js? [sm]:3
at require (WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2)
at appservice.js:7
at e.doWhenAllScriptLoaded (getmainpackage.js:16817)
at h (WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2)
at WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2(env: macOS,mp,1.06.2405020; lib: 2.15.0)
WAServiceMainContext.js:2 Uncaught FrameworkError
process is not defined
ReferenceError: process is not defined
at Mime.define (http://127.0.0.1:28082/appservice/common/vendor.js:18036:7)
at http://127.0.0.1:28082/appservice/common/vendor.js:18067:6
at require (http://127.0.0.1:28082/appservice/dev/WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2:2369957)
at r (http://127.0.0.1:28082/appservice/dev/WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2:2368549)
at http://127.0.0.1:28082/appservice/app.js:7:21
at require (http://127.0.0.1:28082/appservice/dev/WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2:2369957)
at ide:///package/APP/appservice.js:7:9
at e.doWhenAllScriptLoaded (ide:///getmainpackage.js:16817:21)
at h (http://127.0.0.1:28082/appservice/dev/WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2:120638)
at http://127.0.0.1:28082/appservice/dev/WASubContext.js?t=wechat&s=1724917553847&v=2.15.0:2:121463(env: macOS,mp,1.06.2405020; lib: 2.15.0)

2024-08-29 15:51 负责人:无 分享
已邀请:

要回复问题请先登录注册