[vue3.x] TypeError: Object(...) is not a function
See original GitHub issueHello.
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.
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:
- Created 2 years ago
- Reactions:3
- Comments:11 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to fix this issue (using vue3 + typescript) with the following configurations:
to package.json:
to tsconfig.json:
If not using typescript, babel options could help for vue-class-component
fixed in
4.0.0-beta.8
.