question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[vue3.x] TypeError: Object(...) is not a function

See original GitHub issue

Hello. I’m migrating my project from vue2 to vue3. On vue2 I used this slider alot and everithing works just fine. On vue3 i’ve intalled 4.0.0-beta.5 version, but it throws me wierd error just from the beggining.

image

Have no idea what could be the reason - it works fine on clean new vue3 project, but does not even start on mine. Probably there are some conflicts with other libraries or my config. Have you seen errors like this?

Environment

  • OS & Version: Windows
  • Vue version: 3.2.4
  • Component Version: 4.0.0-beta.5
  • Webpack: 5.53

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ebrakecommented, Jun 6, 2022

I was able to fix this issue (using vue3 + typescript) with the following configurations:

to package.json:

"dependencies": {
  "vue-property-decorator": "^9.0.2",
  "vue-slider-component": "^4.0.0-beta.4"
},
"devDependencies": {
  "vue-class-component": "^8.0.0-0",
}

to tsconfig.json:

"compilerOptions": {
  "experimentalDecorators": true
}

If not using typescript, babel options could help for vue-class-component

0reactions
NightCatSamacommented, Jun 24, 2022

fixed in 4.0.0-beta.8.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Object(...) is not a function in Vue - Stack Overflow
this is exporting an object which you are assigning to scheduleMeeting in your import statement. import scheduleMeeting from "../api/meeting".
Read more >
Uncaught TypeError: Object(...) is not a function in Vue3
I'd start by fixing those warnings. My best guess would be that you have a version mismatch between vue and @vue/compiler-sfc . Use...
Read more >
[vue-3] Bug: TypeError: Object(...) is not a function #95 - GitHub
When i import the useLoading from the package I got the TypeError: Object(...) is not a function Error when i call the loading....
Read more >
Uncaught TypeError: Object(...) is not a function | Vue Forums
Hi,. I have created a simple code using vue and syncfusion. I have successed create a simple demo using. SpreadsheetPlugin.
Read more >
TypeError: Object(...) is not a function : r/vuejs - Reddit
TypeError : Object(...) is not a function. SOLVED: I just have to delete () from ApiService(), I'm an idiot :).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found