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

ie8 throw error #7

Closed
shawon1220 opened this issue Aug 21, 2015 · 7 comments
Closed

ie8 throw error #7

shawon1220 opened this issue Aug 21, 2015 · 7 comments

Comments

@shawon1220
Copy link

shawon1220 commented Aug 21, 2015

hi,when i use it ie8,thorw one error:

Unhandled promise rejection TypeError: Object does not support the "next" property or method.

async function next() {
if (({ value, done } = handlers.next()) && !done) {
const [match, handler] = value;
state.params = match.params;
return handler.length > 1 ?
await handler(state, next) : await handler(state);
}
}

@cwtuan
Copy link

cwtuan commented Nov 18, 2015

Not work in ie8. How can I fix it?

@lockelee1015
Copy link

have you fix this bug?
I meet this problem too

@kongliangyu
Copy link

met same issue

@Bogdaan
Copy link

Bogdaan commented Sep 5, 2016

@cwtuan
@lockelee1015
@kongliangyu

This is not "universal-router" issue.
See https://facebook.github.io/react/blog/2016/01/12/discontinuing-ie8-support.html

How to fix this?
Ans.: downgrade react version.

@kongliangyu
Copy link

@Bogdaan
I have already switched to react v0.14. And if I comment out universal-router codes, the app works, if I kept, app breaks...

Could it be a babel polyfill issue or it doesn't support ES3?

I am still looking into this...

@kongliangyu
Copy link

It's actually an issue from babel runtime polyfill, see: babel/babel#3445

@frenzzy
Copy link
Member

frenzzy commented Oct 20, 2016

Old ticket, please reopen if needed.

@frenzzy frenzzy closed this as completed Oct 20, 2016
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