Question · Vue.js course · Module 15: TypeScript & Nuxt
Window in SSR
Why can't you use the window object directly in <script setup> with SSR?
Answer options
- Window is only available in development mode
- Window is a browser object that does not exist on the server
- Vue blocks access to window for security reasons
- TypeScript has no types for the window object
You can check the correct answer by solving this task in the CodeWorlds game.