You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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... 😥
The text was updated successfully, but these errors were encountered:
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 itsbabel.config.json
and specifiesbrowserify src/index.js -t [ babelify --rootMode upward ]
in itspackage.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... 😥The text was updated successfully, but these errors were encountered: