小程序报错(TypeError:|小程序报错:TypeError: Cannot read property 'call' of undefined)
工程 :uni-app+Vue+TypeScript
问题:无法创建组件
文章图片
image.png 参考:https://robinchen.me/tech/2016/10/25/tech-A-case-of-ES6-modules.html
文章图片
image.png 排查:
文章图片
image.png
文章图片
image.png
文章图片
image.png 红色标识的2个导出顺序,与代码顺序不一样。
处理:
调整代码:
import { ApplyAntiCheatCodeRequest, AntiResultResponse } from '@api/gateway/PlatformRandomCode'
【小程序报错(TypeError:|小程序报错:TypeError: Cannot read property 'call' of undefined)】重新构建。没有再报此问题。
推荐阅读
- 一个小故事,我的思考。
- 家乡的那条小河
- 一个人的碎碎念
- 野营记-第五章|野营记-第五章 讨伐梦魇兽
- 昨夜小楼听风
- 2021-02-17|2021-02-17 小儿按摩膻中穴-舒缓咳嗽
- 基于微信小程序带后端ssm接口小区物业管理平台设计
- 2019.4.18感恩日记
- 那件我们忽略的小事叫感恩
- 你有婚内虐待行为吗()