Skip to content

Doesn't work with CRA #18

@T-101

Description

@T-101

Installing this package to a create-react-app project will yield a problem.

SyntaxError: ./node_modules/canvasjs/src/charts/index.js: Support for the experimental syntax 'exportDefaultFrom' isn't currently enabled (1:8):

> 1 | export SplineChart from '../charts/spline';
    |        ^
  2 | export ColumnChart from '../charts/column';
  3 | export StackedColumnChart from '../charts/stacked_column';
  4 | export StackedColumn100Chart from '../charts/stacked_column_100';

Add @babel/plugin-proposal-export-default-from (https://git.io/vb4yH) to the 'plugins' section of your Babel config to enable transformation.

Installing that plugin is apparently not possible without ejecting, which on it's own is usually not viable

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