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 Error: Unable to get value of -js-display #61

Open
rodzyn opened this issue May 26, 2016 · 12 comments
Open

IE9 Error: Unable to get value of -js-display #61

rodzyn opened this issue May 26, 2016 · 12 comments
Assignees

Comments

@rodzyn
Copy link

rodzyn commented May 26, 2016

Hey guys,
I'm getting an error on IE9:

SCRIPT5007: Unable to get value of the property '-js-display': object is null or undefined

Any clues?

I'm using version 1.0.5 (with react/redux, babel+webpack)

@snowman-repos
Copy link

snowman-repos commented May 30, 2016

Same here. I have the -js-display property everywhere that I have display: flex.

Update: The error isn't there anymore, although I didn't actually change anything... However, the polyfill doesn't seem to be doing anything.

http://localhost:8080/home/

@thelucre
Copy link

+1 -js-display: flex; has no effect in IE9

Using 1.0.5 through Grunt

@MBarnes0926
Copy link

Were you guys testing using IE9 emulation in IE11? Testing using the IE9 emulation gave me the same results you seem to have come up with. Testing in actual IE9 worked just fine.

My theory is that IE11 doesn't use the old js engine when it's emulating. I have nothing to base that on, however, save for some cryptic error messages in old projects.

@snowman-repos
Copy link

I was testing using an IE9 / Windows 7 virtual machine

@rgpublic
Copy link

I'm using a real IE9 and I'm getting the same error. Flexibility doesn't seem to do anything.

@jonathantneal
Copy link
Owner

Would you test this again with v2? You should not be getting any such error. If there is trouble reading currentStyle in older IE, then flexibility should just skip that element.

@thelucre
Copy link

Is 2.0 published on NPM?

@jonathantneal
Copy link
Owner

Yes, it is. https://www.npmjs.com/package/flexibility

@tiagomatosweb
Copy link

Same here! IE8/9 doesn't work! Back to v1.x

@gazmcj
Copy link

gazmcj commented Jul 6, 2016

ERROR: Unable to get value of the property '-js-display': object is null or undefined
IE9 Windows 7
flexibility 1.0.6

-js-display: flex
Has no effect at all
IE9 Windows 7
flexibility 2.0.1

The 1.0.6 standalone test files work fine. But if those same files are copied to a WordPress installation the Unable to get value of the property '-js-display': object is null or undefined error occurs. This is true even if the files are copied to just the root folder of the WordPress installation.

@elalemanyo
Copy link

I am using it on ie9 and it is also not working als expected. I did a small video.
flexibility is being called after 5 sec.

https://app.crossbrowsertesting.com/public/i9ecd12d09fa8a71/livetests/5466655/videos/z1643e0dafd6b246ee03

@anthony-dandrea
Copy link

Same error on IE8 here. I did some debugging and it looks like l.flexStyle[s[0]] in the libarary is giving me the value "auto-5" which is what I think it is barfing on. Not sure how to fix...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants