uber/react-vis

How to make this library work with non ES6 app?

RajS999 opened this issue · 0 comments

While using it in non ES6 react app, I got error Cannot call a class as a function. I have detailed the stack trace in this stackoverflow question. But the conclusion was that it was caused because my app was not in ES6 but react-vis needs ES6. Is that correct?

However, the library has @babel/preset-env specified in its babel.config.json and specifies browserify src/index.js -t [ babelify --rootMode upward ] in its package.json scripts. Shouldnt this make it transpile to < ES6 versions? Or do we need to specify @babel/preset-env in reactvis package's .babelrc.json file? In fact I tried specify that and run, but it didnt work. Few days back I wrote another questions asking specifically that. Just wondering what am missing ... not really a seasoned web developer and never delve deeper in these bundlers... 😥