ERROR [worker] Cannot read properties of undefined (reading 'getSSRProps')
See original GitHub issueEnvironment
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:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Hello, I managed to trigger this by adding an unknown directive to a template:
It would be nice to defend against this if possible, or maybe throw a more friendly error message such as “unknown directive
test
”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.