Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_createSelectorQuery is not defined #7114

Closed
datafu opened this issue Jul 20, 2020 · 1 comment
Closed

_createSelectorQuery is not defined #7114

datafu opened this issue Jul 20, 2020 · 1 comment

Comments

@datafu
Copy link

datafu commented Jul 20, 2020

参考demo写的 手风琴 ,在 taro 3.0.5下会报错
Uncaught (in promise) ReferenceError: _createSelectorQuery is not defined
at eval (index.umd.js?ac0a:1379)
at new Promise ()
at delayQuerySelector (index.umd.js?ac0a:1378)
at AtAccordion.toggleWithAnimation (index.umd.js?ac0a:4940)
at AtAccordion.UNSAFE_componentWillReceiveProps (index.umd.js?ac0a:4964)
at callComponentWillReceiveProps (react-dom.development.js?61bb:12976)
at updateClassInstance (react-dom.development.js?61bb:13178)
at updateClassComponent (react-dom.development.js?61bb:17107)
at beginWork (react-dom.development.js?61bb:18620)
at beginWork$1 (react-dom.development.js?61bb:23179)

代码如下:
import Taro from '@tarojs/taro';
import React, { Component } from 'react';
import './index.less';
import { AtAccordion, AtList, AtListItem } from 'taro-ui'
export default class TaroAccordion extends Component {
constructor () {
super(...arguments)
this.state = {
open: false,
}
}
handleClick (value) {
this.setState({
open: value
})
}
render () {
return (







)
}
}

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 20, 2020

@datafu 到 taro ui 仓库提问一下吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants