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.

ERROR [worker] Cannot read properties of undefined (reading 'getSSRProps')

See original GitHub issue

Environment

Nuxt CLI v3.0.0-27406801.569aaeb 10:01:04 RootDir: /Users/andreyleonov/Desktop/SS 10:01:05 Nuxt project info: 10:01:05


  • Operating System: Darwin
  • Node Version: v16.13.0
  • Nuxt Version: 3.0.0-27406801.569aaeb
  • Package Manager: npm@8.1.0
  • Bundler: Vite
  • User Config: vue, privateRuntimeConfig, publicRuntimeConfig, css, build
  • Runtime Modules: -
  • Build Modules: -

Reproduction

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

[Vue warn]: Failed to resolve directive: motion

ERROR [worker] Cannot read properties of undefined (reading ‘getSSRProps’)

https://codesandbox.io/s/affectionate-glade-37lkf?file=/pages/index.vue

Describe the bug

after update

nuxt3 3.0.0-27403901.b3e9cf6 → 3.0.0-27406801.569aaeb

Additional context

No response

Logs

No response

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
davestewartcommented, Oct 1, 2022

Hello, I managed to trigger this by adding an unknown directive to a template:

<template>
  <div v-test />
</template>
500
Cannot read properties of undefined (reading 'getSSRProps')

at _sfc_ssrRender (./src/app.js:27:134)
...

It would be nice to defend against this if possible, or maybe throw a more friendly error message such as “unknown directive test

4reactions
sh0bercommented, Aug 27, 2022

I got this error when creating a plugin with a .client.js suffix (the plugin created a directive). Removing the client extension fixed it. This wasn’t obvious at first, nor from the error message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - TypeError: Cannot read properties of undefined ...
I believe the error comes from the data fetching or the mounted() , but I haven't been able to solve it. The ProductCard...
Read more >
TypeError Cannot read properties of undefined (reading 'data')
Hello ! I have an issue that i don't understand. I searched online but no clue for my code... ... in template, i...
Read more >
error typeerror: cannot read properties of undefined ... - You.com
When I try to write data to firebase, this is the console error I get: ERROR TypeError: Cannot read properties of undefined (reading...
Read more >
[Vue 3 & Vite 2] Uncaught (in promise) TypeError: Cannot read ...
[Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'getAccessTokenSilently')"
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
Product: PDF.JS Express Viewer Product Version: 8.7.0 Please give a brief summary of your issue: Angular build throwing querySelector Error ...
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