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.

Cannot read properties of undefined (reading 'deep')

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v16.13.0
  • Nuxt Version: 3.0.0-27264620.a62351a
  • Package Manager: yarn@1.22.17
  • Bundler: Vite
  • User Config: build
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

Problem <AtomHobButton :kind="'success'" secondary >test a </AtomHobButton> and dont see button

http://localhost:3000/

CleanShot 2021-11-03 at 09 59 23

Reproduction

https://github.com/productdevbook/nuxt3-bug

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
danielroecommented, Nov 5, 2021

The issue seems to be the lack of a corresponding server transform for the v-focus directive. For example, this might work:

import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
  vue: {
    compilerOptions: {
      directiveTransforms: {
        focus: () => ({
          props: [],
          needRuntime: true
        })
      }
    }
  }
})

see also https://github.com/nuxt/framework/issues/1695#issuecomment-961065288, https://github.com/vuejs/vitepress/issues/92, https://github.com/vuejs/docs/issues/1261.

0reactions
DevIsShortForDevilcommented, Jun 27, 2022

This error also seems to happen when you have a typo in your directives. I accidently used “v-esle” instead of “v-else” and was stuck on this error for a few hours until I found it. it would be really nice if the error could’ve been a little more clear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read properties of undefined ...
I had this issue today and I found out the problem was because I was trying to use an unregistered directive. If you...
Read more >
[2022]TypeError: Cannot read properties of undefined ...
[2022]TypeError: Cannot read properties of undefined (reading 'deep') - Vue · “The code was working a moment ago, but it's not working now.”....
Read more >
Error in render: “TypeError: Cannot read property 'name' of ...
I get the error in title if I go to deep in the object. ... in render: “TypeError: Cannot read property 'name' of...
Read more >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an...
Read more >
Why do I get "Uncaught (in promise) TypeError: Cannot read ...
Why do I get "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getProductReqtypeList')" in Vue.js app?
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