-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
recoil 返回数组或对象报错 3.4.3 #11429
Comments
等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!
Thank you so much! |
@skyliwq 原因是 Recoil 源码里使用了 你可以简单地配置一下 // config/index.js
config = {
defineConstants: {
Window: 'function () {}'
},
// ...
} 我们补充一下到文档。 |
This was referenced Mar 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/skyliwq/taro-recoil-demo.git
小程序基础库: 2.21.1
使用框架: React
复现步骤
const userInfo = selector({
key: 'userInfo',
get: ({ get }) => {
}
期望结果
无法打包上线
实际结果
ReferenceError: Window is not defined
环境信息
The text was updated successfully, but these errors were encountered: