Though I don't think Vueuse is the best solution for you. But I will still give you steps to make it and the suggested solution for you.
If you want to check why it doesn't work. you can follow these steps
npx nuxi@latest module add vueuse or npm i @vueuse/nuxt @vueuse/core// nuxt.config
export default defineNuxtConfig({
modules: [
'@vueuse/nuxt',
],
})
imports: {
presets: [
{
from: "@vueuse/components",
imports: ["UseWindowSize"], // I want to auto import this, I change to `UseWindowSize` or `*` still not working
},
],
},
But remember that no matter how you config, these methods are disabled for auto-import
You can always use them by explicitly import from @vueuse/core.
I think the purpose of your code is to define a div with height = window height - 265px. If that so, the better idea is using css to make it
height: calc(100% - 265px);
for different browser
/* Firefox */
height: -moz-calc(100% - 265px);
/* WebKit */
height: -webkit-calc(100% - 265px);
/* Opera */
height: -o-calc(100% - 265px);
/* Standard */
height: calc(100% - 265px);