小程序2.26版本勾选了将JS5编译成ES5
系统还是不能引入import
WAServiceMainContext.js?t=wechat&s=1663224168147&v=2.26.0:1 Error: module '@babel/runtime/helpers/interopRequireDefault.js' is not defined, require args is '../../@babel/runtime/helpers/interopRequireDefault'
at C (WASubContext.js?t=wechat&s=1663224168147&v=2.26.0:1)
at n (WASubContext.js?t=wechat&s=1663224168147&v=2.26.0:1)
at index.js?=1;:18
at C (WASubContext.js?t=wechat&s=1663224168147&v=2.26.0:1)
at index.js:4
at WASubContext.js?t=wechat&s=1663224168147&v=2.26.0:1
at Module.Xa (WASubContext.js?t=wechat&s=1663224168147&v=2.26.0:1)
at index.js?=1;:6
at <anonymous>:85:29(env: Windows,mp,1.05.2204250; lib: 2.26.0)
看起来是 引入 文件 的问题 。可能路径不对,可能 文件根本不存在
把这个文件删了就行。一看就是扒别人的小程序。
import 是es6写法吧,es5的是 module.epxport