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.

sample not working properly in vue3

See original GitHub issue

Version

4.5.0

Reproduction link

https://github.com/kumaresan-subramani/vue3-suport

working sample

sample sample with "vue": "^2.6.11 works fine without any error

https://github.com/Saranya13/vue-sample/

Environment info

"vue": "^3.0.5"
"@vue/cli-plugin-babel": "^4.5.10",
    "@vue/cli-plugin-eslint": "^4.5.10",
    "@vue/cli-service": "^4.5.10",
    "@vue/compiler-sfc": "^3.0.5",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.8.0",
    "eslint-plugin-vue": "^7.4.1",

Steps to reproduce

clone above mentioned smple then npm i finally npm run serve

browser throws script error, but the same working fine in vue2

What is expected?

component gets rendered without script error

What is actually happening?

throws script error

component-base.js?5981:6 Uncaught TypeError: Object prototype may only be an Object or null: undefined
    at setPrototypeOf (<anonymous>)
    at extendStatics (component-base.js?5981:6)
    at __extends (component-base.js?5981:9)
    at eval (component-base.js?5981:20)
    at eval (component-base.js?5981:195)
    at Module../node_modules/@syncfusion/ej2-vue-base/src/component-base.js (chunk-vendors.js:575)
    at __webpack_require__ (app.js:849)
    at fn (app.js:151)
    at eval (index.js?4867:1)
    at Module../node_modules/@syncfusion/ej2-vue-base/src/index.js (chunk-vendors.js:599)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ktsncommented, Jan 21, 2021
1reaction
sodateacommented, Jan 21, 2021

I’m afraid not. Because it’s not a bug in Vue CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide Inject not working properly in vue 3 composition API
The issue is in the inject component. The value for the inject ed variable is always null and does not update in the...
Read more >
Why Your Vue Component Isn't Updating (and how to fix it)
1. Check that variables are reactive · 2. Make sure to update Arrays and Objects correctly (only in Vue 2) · 3. Use...
Read more >
How to Fetch Data with Vue 3 Suspense, Fallbacks ... - YouTube
The first video in a series on Vue 3 Suspense shares insight on using Vue 3 for asynchronous data loading with UI fallbacks...
Read more >
Component Registration - Vue.js
A Vue component needs to be "registered" so that Vue knows where to locate its implementation when it is encountered in a template....
Read more >
How to use Vue 3 with TypeScript - LogRocket Blog
Build an example Vue app in TypeScript with class-based components ... Unlike Angular, older versions of Vue did not have proper support for ......
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