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

Taro 微信小程序下报错 #1814

Open
boringplay opened this issue Nov 3, 2024 · 1 comment
Open

Taro 微信小程序下报错 #1814

boringplay opened this issue Nov 3, 2024 · 1 comment

Comments

@boringplay
Copy link

由于 Taro 注入了 window,导致 f2 engine 在 isBrowser 上判断不出来,导致微信小程序下会报错

// packages/g-lite/src/utils/canvas.ts
export const isBrowser =
  typeof window !== 'undefined' && typeof window.document !== 'undefined';

Taro 下 window 和 document 都是有值的

@wang1212
Copy link
Member

wang1212 commented Nov 4, 2024

使用的是什么版本?

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