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

Install fail on vue 3 #101

Open
fxcjahid opened this issue Sep 13, 2022 · 2 comments
Open

Install fail on vue 3 #101

fxcjahid opened this issue Sep 13, 2022 · 2 comments

Comments

@fxcjahid
Copy link

Hello,
I have uses vue 3 app.
But, after configuration VueProgressBar it couldn't install.
Show the following issues on the console log.
vue-progressbar.js:1 Uncaught TypeError: o is not a constructor at Object.install (vue-progressbar.js:1:5953) at Object.use (runtime-core.esm-bundler.js:4327:28) at main.js?t=1663055188118:69:5
https://prnt.sc/v-7XWAJuwgYS

My code is :

import { createApp } from "vue";
import App from "./App.vue";
import VueProgressBar from 'vue-progressbar';

const app = createApp(App);
app.use(VueProgressBar, {
    color: 'rgb(143, 255, 199)',
    failedColor: 'red',
    height: '2px'
});

app.mount("#app");

Please, Help me to solve this

@joseprest
Copy link

Uncaught TypeError: o is not a constructor
at Object.install (vue-progressbar.js:1:5953)
at Object.use (runtime-core.esm-bundler.js:4327:28)
at main.ts:49:5

I have same problem in Vue 3 project ( use VITE )

  • No way to use this package in Vue 3?
  • What package is compatible with Vue 3?

@FotieMConstant
Copy link

Hey, just had the same issue and noticed someone has refined the component to have a vue3 compatibility.

here: https://github.com/aacassandra/vue3-progressbar

Hope that helps anyone who comes across this as well in the future!

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

3 participants