收藏
回答

@babel/runtime/helpers/regeneratorValues.js ?

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

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

1 个回答

  • 张晨  🔆
    张晨 🔆
    2天前

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

    2天前
    有用
    回复 1
    • XiaoXiao
      XiaoXiao
      2天前
      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");
      2天前
      回复
登录 后发表内容