小程序中引入 async-validator做表单验证,npm安装了也构建了,显示错误:thirdScriptError
sdk uncaught third Error
module "miniprogram_npm/async-validator/babel-runtime/helpers/extends" is not defined请问有什么办法解决吗
2 回答
守候你守候我
TA贡献1802条经验 获得超10个赞
例如:
import { format, complementError, asyncMap, warning, deepMerge } from './util';import validators from './validator/';import { messages as defaultMessages, newMessages } from './messages';
import { format, complementError, asyncMap, warning, deepMerge } from './util.js';import validators from './validator/index.js';import { messages as defaultMessages, newMessages } from './messages.js';
记住是所有文件都需要改动,因为小程序不会自动去添加和识别后缀名
改完后就可以正常引入了
添加回答
举报
0/150
提交
取消