frandiox / vitesse-ssr-template

🏕 Opinionated Vue + Vite Starter Template with SSR in Node.js
https://vitesse-ssr.vercel.app/
MIT License
187 stars 29 forks source link

TypeError: Cannot read property 'setupLayouts' of null #2

Closed yaquawa closed 3 years ago

yaquawa commented 3 years ago

I just cloned this repo and ran pnpm dev got me this error:

TypeError: Cannot read property 'setupLayouts' of null
    at eval (/Users/xx/src/main.ts:20:38)
    at instantiateModule (/Users/xx/node_modules/.pnpm/vite@2.0.5/node_modules/vite/dist/node/chunks/dep-e0f09032.js:68041:166)
frandiox commented 3 years ago

@yaquawa I couldn't reproduce this error in my environment. I've updated the dependencies in the repo to fix another issue in Vite 2.1.0. Can you try again with the updated deps? Also, are you using Node >= 14?

yaquawa commented 3 years ago

Thanks @frandiox ! I could confirm that the latest version works!