hilongjw / vue-progressbar

A lightweight progress bar for vue
http://hilongjw.github.io/vue-progressbar
MIT License
1.46k stars 162 forks source link

o is not a constructor error #102

Open shubhamrvs opened 1 year ago

shubhamrvs commented 1 year ago

Hello,

I am encountering an issue when trying to use VueProgressBar with Vue. I am getting the error message o is not a constructor. Here is my code:

`import { createApp } from 'vue'; const app = createApp({});

import VueProgressBar from 'vue-progressbar'

app.use(VueProgressBar, { color: 'rgb(143, 255, 199)', failedColor: 'red', height: '2px' })`

image

I have installed the latest version of VueProgressBar and I have also checked for any version conflicts. However, I am still encountering this error.

Could you please help me resolve this issue?

Thank you!

ghost commented 1 year ago

I'm also facing the same issue. Using Laravel 10, Vue 3, Vue Router 4, Webpack.

ahmed-afzal1 commented 1 year ago

did you solve this? i am facing the same issue.