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

Created on 8 Aug 2017  ·  6Comments  ·  Source: vuejs/vue

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);
}

Most helpful comment

重现应当尽量精简

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

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

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

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

All 6 comments

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 😉

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

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

重现应当尽量精简

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

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

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

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

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

这个原因使jsdom对transition不支持,https://github.com/eddyerburgh/avoriaz/issues/77

Was this page helpful?
0 / 5 - 0 ratings

Related issues

franciscolourenco picture franciscolourenco  ·  3Comments

bfis picture bfis  ·  3Comments

julianxhokaxhiu picture julianxhokaxhiu  ·  3Comments

finico picture finico  ·  3Comments

seemsindie picture seemsindie  ·  3Comments