Open stuartcusackie opened 1 year ago
facing the same issue when building my app in SSR mode + it throws error: Cannot read properties of undefined (reading 'getSSRProps')
// vite.config.ts
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
directiveTransforms: {
'click-away': () => ({ props: [] }),
},
},
},
}),
});
I'm seeing this error when running node ssr locally:
SSR: Failed to resolve directive: click-away
The directive works however.
I wonder if it is related to this?