-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
IE11 - Unable to get property 'bind' of undefined or null reference #10015
Comments
So I just took out 90% of my entire app and it still gives this mysterious error in IE. This is how my layout component looks like, with children removed (edit: i'm also using gatsby-plugin-layout so this layout is the wrapper for a good portion of the client side): <Fragment>
<div style={containerStyle}>
<main style={{ flexGrow: 1 }}>{null}</main>
</div>
<ToastContainer autoClose={10000} />
</Fragment> That is beyond amazing. Just where is this error coming from? I've also tried removing material-ui, jss provider, redux, this error is just popping up at all times. |
Would you be able to share your minimum repo ( "So I just took out 90% of my entire app and it still gives this mysterious error in IE." ), so I could take a look? |
@pieh I found out it's in the withRoot() HOC that is wrapping the layout component. I'm using redux-saga in redux and a bunch of them are using async/generator functions, maybe this might be breaking the app? Doesn't babel-preset-gatsby take care of the transpiling for them? |
@pfftdammitchris can you clarify this statement?
I don't think redux-saga is directly using generator functions, rather they're transpiling them for modern browser support. Check it out here
This transpiles your I'm inclined to think this probably is some node_modules dependency that's using code that isn't compatible with IE11. I think we'll look into transpiling node_modules--perhaps opt-in--sooner rather than later. It also shipped in create-react-app v2 so there's some prior evidence there that it could be worth doing. |
Yes it seems it wasn't redux-saga since I replaced it with redux thunk and the error came back all of a sudden. I'm going to check all the modules |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m Thanks again for being part of the Gatsby community! |
Description
Users are receiving a blank white page for IE browsers (IE 11 and under) while every other browser displays the web site just fine. Spent a good 18 hours on this problem of the weekend and was not able to solve this mystery.
Update: This error is happening when doing gatsby build. However when using gatsby develop, it gives the error:
webpack-hot-middleware's client requires EventSource to work. You should include a polyfill if you want to support this browser: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools.
and:
SCRIPT438: Object doesn't support property or method 'startsWith'.
If that is somehow related, please advise :)
Update #2: I put a console.log in the layout component before rendering children. It seems to console.log it normally to the console in other browsers, but its not even invoking the console log in IE. So it doesnt seem like a client side issue at the moment.
Expected result
It should render in IE
Actual result
Showing a blank page on IE. Here is the error in console:
Environment
Here is my package.json:
.babelrc:
gatsby-config.js
The text was updated successfully, but these errors were encountered: