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

How to make this library work with non ES6 app? #1447

Open
RajS999 opened this issue Apr 25, 2022 · 0 comments
Open

How to make this library work with non ES6 app? #1447

RajS999 opened this issue Apr 25, 2022 · 0 comments

Comments

@RajS999
Copy link

RajS999 commented Apr 25, 2022

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... 😥

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

1 participant