Androz2091 / discord-data-package-explorer

🌀 What's really in your Discord Data package?
https://ddpe.androz2091.fr
GNU General Public License v3.0
831 stars 77 forks source link

Chart is not exported by frappe-charts #42

Closed AeonLucid closed 3 years ago

AeonLucid commented 3 years ago

Hi,

Tried to run this with

npm install
npm run dev

The installation succeeded, but npm run dev gives the following:

> 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';
awulkan commented 3 years ago

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';

AeonLucid commented 3 years ago

Thanks, that worked.