Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Library does not work #10

Open
builder555 opened this issue Sep 2, 2024 · 0 comments
Open

Bug: Library does not work #10

builder555 opened this issue Sep 2, 2024 · 0 comments

Comments

@builder555
Copy link

builder555 commented Sep 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant