Skip to content

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

Open
@RajS999

Description

@RajS999

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions