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.

Vue 2 Composition API: Cannot read property '$options' of undefined

See original GitHub issue

I believe this change broke Vuelidate for my Vue 2 with composition API project, just by updating I started getting this error:

"TypeError: Cannot read property '$options' of undefined"

I created a Code Sandbox. The error I get there is different but I think they are related, something has gone wrong with Vue 2 support.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dobromir-hristovcommented, Mar 4, 2021

Thats probably it. We are using a newer version, ^1.0.0-rc.1.

0reactions
tochoromerocommented, Mar 5, 2021

You were right, upgrading to the latest Release Candidate of Vue Composition API fixed it, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

vuejs 2 composition api: TypeError: Cannot read properties of ...
The problem isn't with the composition API, problem is with your code. ... Step 2: go to package.json file inside dependencies find "vue": ......
Read more >
TypeError: Cannot read property 'options' of undefined #267
I am trying to update vue2 to vue3 I am using: "vue": "^3.0.0-rc.5", ... TypeError: Cannot read property 'options' of undefined #267.
Read more >
ERROR Cannot read property 'options' of undefined - Get Help
It looks like find returns undefined if the value you're searching for doesn't exist. Wherever you stop could help you narrow down your...
Read more >
Vue: TypeError: Cannot read property of undefined. - Laracasts
My data works fine and populates the template, however I get warning: vue.js:2215 TypeError: Cannot read property 'short_name' of undefined.
Read more >
How to fix the Error in data(): "TypeError: Cannot read ...
How to fix the Error in data(): "TypeError: Cannot read properties of null (reading 'config')", Vue2 composition API warning.
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