项目在本地ie运行正常,打包放到线上后再用ie打开就白屏报错了。看起来是styled-components这个依赖存在问题
下面是报错提示:
SCRIPT5022: An error occurred. See https://github.com/styled-com... for more information. Additional arguments: .Grid__UIGrid-nyvpfl-1
项目在本地ie运行正常,打包放到线上后再用ie打开就白屏报错了。看起来是styled-components这个依赖存在问题
下面是报错提示:
SCRIPT5022: An error occurred. See https://github.com/styled-com... for more information. Additional arguments: .Grid__UIGrid-nyvpfl-1
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
2 回答4.3k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
2 回答1.7k 阅读✓ 已解决
4 回答2.5k 阅读✓ 已解决
5 回答3.8k 阅读
看报错信息,应该是 styled components 对 ie 的兼容性不够,可以搜索看看有没有 polyfill