javascript - React.js react-throttle with Meteor.js breaks in IE and Android Browser -


i'm writing meteor app (version 1.3.5.1) using react, version 15.2.0 , module react-throttle (version 0.3.0).

when running on firefox, chrome, opera, safari (desktop , mobile) works fine. when running on ie or android browser (6.x), following error thrown:

uncaught typeerror: _this.handlerstowrap.includes not function 

this line in file:

/node_modules/react-throttle/lib/classes/processors/base.js 

if comment out line, works charm on browsers.

to me seems handlerstowrap array. method includes on arrays seems es6 or es7 method, supported firefox,opera etc. not ie , android browser (i tested that).

so question: how fix that? why meteor send es7-method client @ all? shouldn't transpile first?

of course replace includes indexof or something... don't want mess around react code auto updated npm...

few es7 features include not supported meteor babel package ecmascript. others spread/rest operators on objects implemented.

see note here, under meteor , read info.

i have removed module used specific method call, not vital me. there few modules using features this, recommend doing same if run in issue.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -