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

foca2 在低版本的手机有兼容问题,iphone6和部分oppo #41

Closed
paulloo opened this issue Sep 6, 2023 · 9 comments
Closed
Labels
bug Something isn't working

Comments

@paulloo
Copy link

paulloo commented Sep 6, 2023

复现步骤:
taro-playground 基础上 加上foca的配置,然后 npm run build:h5 就会出现问题
image
应该是foca项目内部某些库没有经过babel编译导致的

问题挺致命的,麻烦尽快修复 @fwh1990

@paulloo paulloo changed the title foca 在低版本的手机有兼容问题,iphone6和部分oppo foca2 在低版本的手机有兼容问题,iphone6和部分oppo Sep 6, 2023
@geekact geekact added the bug Something isn't working label Sep 6, 2023
@geekact
Copy link
Member

geekact commented Sep 6, 2023

请提供 taro-playground 的获取地址,以及iphone6的ios版本,使用的浏览器

@geekact
Copy link
Member

geekact commented Sep 6, 2023

另外请尝试使用foca v1 版本是否有相同问题

@geekact
Copy link
Member

geekact commented Sep 6, 2023

我现在一时间下载不到iphone6的模拟器,最好能帮我定位一下是dist里哪行代码出了问题,这样修复起来会快些

@paulloo
Copy link
Author

paulloo commented Sep 6, 2023

暂时定位不到,只有图片上面的报错,我尝试用 bable loader 编译 foca 但是依然有问题!
foca1 没有尝试
我看产物 index.js 里面有带 super 的,会不会是这个导致的兼容问题

@geekact
Copy link
Member

geekact commented Sep 6, 2023

安装这个版本 foca@2.0.2-revert-browserslist ,兼容了ios9。如果可行,我将revert兼容版本 cdc5e3c

@geekact
Copy link
Member

geekact commented Sep 6, 2023

不过可能不太乐观,因为最新版的immer直接使用了proxy语法,这个功能在safari 9 (ios9) 上是没有的。所以如果不行就尝试v1

@paulloo
Copy link
Author

paulloo commented Sep 7, 2023

不过可能不太乐观,因为最新版的immer直接使用了proxy语法,这个功能在safari 9 (ios9) 上是没有的。所以如果不行就尝试v1

恢复到1.3.1解决了

@geekact
Copy link
Member

geekact commented Sep 7, 2023 via email

geekact added a commit that referenced this issue Sep 8, 2023
@geekact
Copy link
Member

geekact commented Oct 8, 2023

v3版本把immer降级了,重新支持旧版浏览器,推荐升级

@geekact geekact closed this as completed Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants