Closed AeonLucid closed 3 years ago
Hi,
Tried to run this with
npm install npm run dev
The installation succeeded, but npm run dev gives the following:
npm run dev
> rollup -c -w rollup v1.32.1 bundles src/main.js → public\build\bundle.js... [!] Error: 'Chart' is not exported by node_modules\frappe-charts\dist\frappe-charts.min.umd.js, imported by node_modules\svelte-frappe-charts\src\components\base.svelte https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module node_modules\svelte-frappe-charts\src\components\base.svelte (3:11) 1: <script> 2: import { onMount, afterUpdate, onDestroy } from 'svelte'; 3: import { Chart } from 'frappe-charts';
Yeah, you have to go into node_modules\svelte-frappe-charts\src\components\base.svelte and change: import { Chart } from 'frappe-charts'; to import Chart from 'frappe-charts';
node_modules\svelte-frappe-charts\src\components\base.svelte
import { Chart } from 'frappe-charts';
import Chart from 'frappe-charts';
Thanks, that worked.
Hi,
Tried to run this with
The installation succeeded, but
npm run dev
gives the following: