收藏
回答

@babel/runtime/helpers/regeneratorValues.js ?

使用微信开发者工具,预览上传微信小程序代码,是正常的。但是使用miniprogram-ci进行预览,上传。页面就只有底部选择栏由内容,内容是白屏,运行时报错:Error: module '@babel/runtime/helpers/regeneratorValues.js' is not defined, require args is '@babel/runtime/helpers/regeneratorValues'。

回答关注问题邀请回答
收藏

5 个回答

  • 张晨  🔆
    张晨 🔆
    2025-07-25

    提供 ci版本 以及可以复现的代码片段

    2025-07-25
    有用
    回复 1
    • XiaoXiao
      XiaoXiao
      2025-07-25
      miniprogram-ci版本为2.1.18,使用的是三方打包成的微信小程序,微信小程序使用miniprogram-ci预览和上传,会出现上述情况。我使用ci.getCompiledResult,获取最终编译产物,报错的地方在这里:  require("@babel/runtime/helpers/Objectentries");var t=require("@babel/runtime/helpers/asyncToGenerator"),e=require("@babel/runtime/helpers/regeneratorValues"),n=require("@babel/runtime/helpers/toArray"),r=require("@babel/runtime/helpers/defineProperty"),o=(require("@babel/runtime/helpers/readOnlyError"),require("@babel/runtime/helpers/slicedToArray")),i=require("@babel/runtime/helpers/objectSpread2"),u=require("@babel/runtime/helpers/assertThisInitialized"),a=require("@babel/runtime/helpers/possibleConstructorReturn"),c=require("@babel/runtime/helpers/isNativeReflectConstruct"),s=require("@babel/runtime/helpers/getPrototypeOf"),f=require("@babel/runtime/helpers/inherits"),l=require("@babel/runtime/helpers/toConsumableArray"),d=require("@babel/runtime/helpers/classCallCheck"),p=require("@babel/runtime/helpers/createClass"),h=require("@babel/runtime/helpers/typeof"),v=require("@babel/runtime/helpers/createForOfIteratorHelper"),y=require("@babel/runtime/helpers/wrapAsyncGenerator"),m=require("@babel/runtime/helpers/awaitAsyncGenerator"),g=require("@babel/runtime/helpers/asyncGeneratorDelegate"),b=require("@babel/runtime/helpers/asyncIterator");
      2025-07-25
      回复
  • 日景
    日景
    01-04

    同样的问题,有解决方案吗?

    01-04
    有用
    回复
  • Chris
    Chris
    2025-10-28

    同样的问题,本地编译正常使用,使用ci报这个错,ci版本 2.1.14

    2025-10-28
    有用
    回复
  • 随运🤓漂流
    随运🤓漂流
    2025-09-22

    同样的问题,想请教有修复方案吗

    2025-09-22
    有用
    回复
  • ZHANG
    ZHANG
    2025-08-28

    我也是这个问题,想问有解决方案了么

    2025-08-28
    有用
    回复
登录 后发表内容