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

IE9 SCRIPT5007: 无法获取未定义或 null 引用的属性“split” #6318

Closed
fengyun2 opened this issue Aug 8, 2017 · 6 comments
Closed

Comments

@fengyun2
Copy link

fengyun2 commented Aug 8, 2017

Version

2.4.2

Reproduction link

https://github.com/ly2011/vue2-elm

Steps to reproduce

$ npm run dev

What is expected?

Compatible with IE9.

What is actually happening?

No error in IE9.


IE9 only under the error.

The function and location of the error:

function getTransitionInfo (el, expectedType) {
  var styles = window.getComputedStyle(el);
  var transitionDelays = styles[transitionProp   'Delay'].split(', '); // 这里报错了
  var transitionDurations = styles[transitionProp   'Duration'].split(', ');
  var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
  var animationDelays = styles[animationProp   'Delay'].split(', ');
  var animationDurations = styles[animationProp   'Duration'].split(', ');
  var animationTimeout = getTimeout(animationDelays, animationDurations);
}
@posva
Copy link
Member

posva commented Aug 8, 2017

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server, gitter or StackOverflow.


BTW, when reporting a bug (or asking for help), providing the strict minimal will augment your chances of getting help 😉

@posva posva closed this as completed Aug 8, 2017
@Aiyibooo
Copy link

Aiyibooo commented Sep 25, 2017

你好,请问问题解决了吗?
我也遇到相同的问题,重置ie9的设置就解决了,但是不知道根本的原因是什么。。。

@Aiyibooo
Copy link

Aiyibooo commented Sep 25, 2017

另外我发现,只要加了 transition 这个标签,就会出现这个错误。

@yyx990803
Copy link
Member

重现应当尽量精简

有些用户会直接给我们一整个项目的代码,然后希望我们帮忙找出问题所在。此类请求我们通常不予接受,因为:

你对你的项目的代码结构可能已经非常熟悉,但我们并不是。阅读、运行、分析一个完全陌生的项目是极其耗费时间和精力的。

由于涉及了大量业务代码,问题可能是你的代码错误,而不是 Vue 的 bug 所导致的。

一个最小化的重现意味着它精确地定位了 bug 本身 - 它应当只包含能够触发 bug 的最少量的代码。你应当尽可能地剔除任何跟该 bug 无关的部分。

@bbqwwb
Copy link

bbqwwb commented Mar 29, 2018

我也遇到同样的问题 你解决了吗

@SmileLifeIven
Copy link

SmileLifeIven commented Jan 15, 2020

这个原因使jsdom对transition不支持,eddyerburgh/avoriaz#77

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

6 participants