SharpieMaster
SharpieMaster
Explore posts from servers
NNuxt
Created by SharpieMaster on 8/14/2024 in #❓・help
No intellisense VSCode
My intellisense for types and javascript dissapear randomly, and I get a notification "To enable project-wide JavaScript/TypeScript language features, exclude large folders with source files that you do not work on.",but shouldnt the tsconfig already be doing that? I also run out of memory often, is this normal?
ERROR [uncaughtException] Worker terminated due to reaching memory limit: JS heap out of memory 6:33:18 p.m.

at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at new NodeError (node:internal/errors:405:5)
at [kOnExit] (node:internal/worker:313:26)
at Worker.<computed>.onexit (node:internal/worker:229:20)
ERROR [uncaughtException] Worker terminated due to reaching memory limit: JS heap out of memory 6:33:18 p.m.

at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at new NodeError (node:internal/errors:405:5)
at [kOnExit] (node:internal/worker:313:26)
at Worker.<computed>.onexit (node:internal/worker:229:20)
I have 32 Gb of memory, and this is my nuxi info
- Operating System: Windows_NT
- Node Version: v20.5.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, typescript, devtools, alias, modules
- Runtime Modules: [email protected], @nuxtjs/[email protected]
- Build Modules: -
------------------------------
- Operating System: Windows_NT
- Node Version: v20.5.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, typescript, devtools, alias, modules
- Runtime Modules: [email protected], @nuxtjs/[email protected]
- Build Modules: -
------------------------------
Thank you.
6 replies
NNuxt
Created by SharpieMaster on 8/13/2024 in #❓・help
No Type Hints
I was under the impression that Nuxt supported types everywhere. But in this simple ./app.vue
<script setup lang="ts">
const count = ref<number>(0);
const increment = () => count.value++;
</script>

<template>
<div>
<span>count is {{ count }}</span>
<button v-on:click="increment()">+</button>
</div>
</template>
<script setup lang="ts">
const count = ref<number>(0);
const increment = () => count.value++;
</script>

<template>
<div>
<span>count is {{ count }}</span>
<button v-on:click="increment()">+</button>
</div>
</template>
I dont get any type hints for the count variable, nor the increment function within the code block, and I do not get any errors when writing invalid typescript code before execution. I have the Vue - Official vs code extension installed.
------------------------------
- Operating System: Windows_NT
- Node Version: v20.5.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: npm@9.8.0
- Builder: -
- User Config: compatibilityDate, typescript, devtools, modules
- Runtime Modules: nuxt-typed-router@3.6.5
- Build Modules: -
------------------------------
------------------------------
- Operating System: Windows_NT
- Node Version: v20.5.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: npm@9.8.0
- Builder: -
- User Config: compatibilityDate, typescript, devtools, modules
- Runtime Modules: nuxt-typed-router@3.6.5
- Build Modules: -
------------------------------
If this is expected behavior, please tell me. Thank you.
13 replies