jd-opensource / jd-opensource/taro-ui

AtSwipeAction H5报错

Open
#1,172 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

### Taro UI 版本信息

v2.3.4

### 问题描述

H5下面使用AtSwipeAction 报错 _createSelectorQuery is not defined

### 复现步骤

页面直接引用AtSwipeAction

### 复现代码

AtSwipeAction 一般使用场景

### 报错信息

Uncaught (in promise) ReferenceError: _createSelectorQuery is not defined
at eval (utils.ts?a20a:19)
at new Promise ()
at delayQuerySelector (utils.ts?a20a:18)
at AtSwipeActionOptions.trrigerOptionsDomUpadte (index.tsx?d55c:11)
at AtSwipeActionOptions.componentDidMount (index.tsx?d55c:20)
at Ji (react-dom.production.min.js?ca5d:212)
at Sj (react-dom.production.min.js?ca5d:255)
at exports.unstable_runWithPriority (scheduler.production.min.js?fb07:18)
at cg (react-dom.production.min.js?ca5d:122)
at Jj (react-dom.production.min.js?ca5d:248)
(anonymous) @ utils.ts?a20a:19
delayQuerySelector @ utils.ts?a20a:18
AtSwipeActionOptions.trrigerOptionsDomUpadte @ index.tsx?d55c:11
AtSwipeActionOptions.componentDidMount @ index.tsx?d55c:20
Ji @ react-dom.production.min.js?ca5d:212
Sj @ react-dom.production.min.js?ca5d:255
exports.unstable_runWithPriority @ scheduler.production.min.js?fb07:18
cg @ react-dom.production.min.js?ca5d:122
Jj @ react-dom.production.min.js?ca5d:248
yj @ react-dom.production.min.js?ca5d:239
(anonymous) @ react-dom.production.min.js?ca5d:123
exports.unstable_runWithPriority @ scheduler.production.min.js?fb07:18
cg @ react-dom.production.min.js?ca5d:122
fg @ react-dom.production.min.js?ca5d:123
gg @ react-dom.production.min.js?ca5d:122
Ig @ react-dom.production.min.js?ca5d:230
enqueueForceUpdate @ react-dom.production.min.js?ca5d:133
F.forceUpdate @ react.production.min.js?be24:12
mount @ react.ts?a30e:160
mount @ react.ts?a30e:202
onLoad @ common.ts?d785:115
loadPage @ router.ts?051f:85
_callee$ @ router.ts?051f:168
tryCatch @ runtime.js?96cf:62
invoke @ runtime.js?96cf:296
prototype.(anonymous function) @ runtime.js?96cf:114
asyncGeneratorStep @ asyncToGenerator.js?1da1:3
_next @ asyncToGenerator.js?1da1:25
Promise.then (async)
AtSwipeActionOptions.trrigerOptionsDomUpadte @ index.tsx?d55c:11
AtSwipeActionOptions.componentDidMount @ index.tsx?d55c:20
Ji @ react-dom.production.min.js?ca5d:212
Sj @ react-dom.production.min.js?ca5d:255
exports.unstable_runWithPriority @ scheduler.production.min.js?fb07:18
cg @ react-dom.production.min.js?ca5d:122
Jj @ react-dom.production.min.js?ca5d:248
yj @ react-dom.production.min.js?ca5d:239
(anonymous) @ react-dom.production.min.js?ca5d:123
exports.unstable_runWithPriority @ scheduler.production.min.js?fb07:18
cg @ react-dom.production.min.js?ca5d:122
fg @ react-dom.production.min.js?ca5d:123
gg @ react-dom.production.min.js?ca5d:122
Ig @ react-dom.production.min.js?ca5d:230
enqueueForceUpdate @ react-dom.production.min.js?ca5d:133
F.forceUpdate @ react.production.min.js?be24:12
mount @ react.ts?a30e:160
mount @ react.ts?a30e:202
onLoad @ common.ts?d785:115
loadPage @ router.ts?051f:85
_callee$ @ router.ts?051f:168
tryCatch @ runtime.js?96cf:62
invoke @ runtime.js?96cf:296
prototype.(anonymous function) @ runtime.js?96cf:114
asyncGeneratorStep @ asyncToGenerator.js?1da1:3
_next @ asyncToGenerator.js?1da1:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js?1da1:13
_next @ asyncToGenerator.js?1da1:25
(anonymous) @ asyncToGenerator.js?1da1:32
(anonymous) @ asyncToGenerator.js?1da1:21
render @ router.ts?051f:119
listener @ history.js?bded:155
(anonymous) @ history.js?bded:173
notifyListeners @ history.js?bded:172
setState @ history.js?bded:288
(anonymous) @ history.js?bded:402
confirmTransitionTo @ history.js?bded:145
replace @ history.js?bded:385
navigate @ api.ts?ad15:25
redirectTo @ api.ts?ad15:50
Tabbar.switchTab @ taro-tabbar.entry.js?a911:155
onClick @ taro-tabbar.entry.js?a911:105
6utils.ts?a20a:45 Uncaught ReferenceError: _createSelectorQuery is not defined
at delayGetClientRect (utils.ts?a20a:45)
at AtSwipeAction.getDomInfo (index.tsx?890f:58)
at HTMLElement.AtSwipeAction._this.handleTouchStart (index.tsx?890f:124)

### 系统信息

Taro CLI 3.0.7 environment info:
System:
OS: Windows 10
Binaries:
Node: 14.0.0 - D:\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.4 - D:\nodejs\npm.CMD

### 补充信息

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.