vue-bulma / canvas-gauges

Vue Canvas Gauges is based on Canvas gauges for Vue
MIT License
49 stars 11 forks source link

Bug: Library does not work #10

Open builder555 opened 2 months ago

builder555 commented 2 months ago

Steps to reproduce:

Create a new vue project: npm create vue@latest (accept all defaults)

Add canvas gauges: npm install vue-canvas-gauges --save

Create a component using the example from readme:

<template>
  <div>
    <radial-gauge options="{ value: 233 }"></radial-gauge>
    <linear-gauge :value="377"></linear-gauge>
  </div>
</template>

<script>
import { LinearGauge, RadialGauge }  from 'vue-canvas-gauges'

export default {
  components: {
    LinearGauge,
    RadialGauge
  }
}
</script>

Run the project: npm run dev

Expected results:

Gauges visible

Actual results:

✘ [ERROR] Could not resolve "./LinearGauge"

    node_modules/vue-canvas-gauges/src/index.js:1:24:
      1 │ import LinearGauge from './LinearGauge'
        ╵                         ~~~~~~~~~~~~~~~

✘ [ERROR] Could not resolve "./RadialGauge"

    node_modules/vue-canvas-gauges/src/index.js:2:24:
      2 │ import RadialGauge from './RadialGauge'
        ╵                         ~~~~~~~~~~~~~~~

Environment:

Node: v16.18.1 npm: 8.19.2