YDJ-FE / ts-react-vite_or_webpack

a starter-template with typescript, react, mobx and vite/webpack...
https://starter.jackple.com/
MIT License
362 stars 116 forks source link

针对于<=IE10的浏览器兼容 #1

Closed HeartCloud closed 6 years ago

HeartCloud commented 6 years ago

你的思路很清晰,结构也合理!但是,你应该没有考虑浏览器兼容性,针对于<=IE10的浏览器怎么处理呢?

jackple commented 6 years ago

@HeartCloud 哪方面的兼容性呢

HeartCloud commented 6 years ago

mobx装饰器的使用, @inject('store') @observer

jackple commented 6 years ago

@HeartCloud IE10都不可以用? 把错误贴上来看看

HeartCloud commented 6 years ago

image

HeartCloud commented 6 years ago

hi,朋友: 刚测试你的demo,ie11都不能正常使用

jackple commented 6 years ago

@HeartCloud 不好意思, 忘了说mobx5之后的兼容性, 详看https://github.com/mobxjs/mobx#browser-support

liwan11123123 commented 6 years ago

本来是用的angular 6写的pc 项目,结果要写手机端, 用这个写了几天发现不能<=11. 在想如何是好

HeartCloud commented 6 years ago

mobx5版本是不兼容低版浏览器的,可以考虑降级到mobx4的版本

ht1005cyh@163.com

发件人: liwan11123123 发送时间: 2018-10-03 20:01 收件人: YDJ-FE/ts-react-webpack 抄送: 胡挺; Mention 主题: Re: [YDJ-FE/ts-react-webpack] 针对于<=IE10的浏览器兼容 (#1) 本来是用的angular 6写的pc 项目,结果要写手机端, 用这个写了几天发现不能<=11. 在想如何是好 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

liwan11123123 commented 6 years ago

可否给个 降级到mobx4的版本 的 方案呢? 降级过后是否需要改动源码的api?

jackple commented 6 years ago

@liwan11123123 mobx4、5的api是兼容的

:octocat: From gitme iOS

liwan11123123 commented 6 years ago

image

我在降级到mobx 4.5.0 的时候出现了运行时的报错。有方式可以解决吗?

liwan11123123 commented 6 years ago

顺便问下,有没有可以一起交流的群呢?

jackple commented 6 years ago

@liwan11123123 暂时没有相关的群.

对于上述的报错, 请修改https://github.com/YDJ-FE/ts-react-webpack/blob/008cc3a0f4dd357e8898184c624472975cc5938c/build/webpack.config.js#L26

因为mobx4并没有这个资源文件