Skip to content

Importing Line from react-chart-js-2 gives Missing class properties tranform #14

Description

@TajMohammad786

whenever I import Line this error is thrown please help If any solution is there
./node_modules/chart.js/dist/chart.js
SyntaxError: D:\Projects\Crypto App\crypto-app\node_modules\chart.js\dist\chart.js: Missing class properties transform.
565 | };
566 | class DatasetController {

567 | static defaults = {};
| ^^^^^^^^^^^^^^^^^^^^^
568 | static datasetElementType = null;
569 | static dataElementType = null;
570 | constructor(chart, datasetIndex){

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions