1,315 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
46
views
Nuxt4 & Cannot find name 'defineEventHandler' at server folder
"nuxt": "^4.2.0",
server/middleware/auth.ts & server/api/auth.ts can not find defineEventHandler
export default defineEventHandler(async (event) => {
});
-1
votes
0
answers
36
views
Cannot find name 'defineEventHandler' at server file
enter image description here
"nuxt": "^4.2.0",
Nuxt will automatic import the functions related to H3.So it should be work at server folder.But i noticed that the tsconfig.json is ...
0
votes
0
answers
66
views
VSCode Intellisense doesn't work in Turborepo jit package
I am developing a personal project using Turborepo. The project consists of a root app and various packages, each structured according to their specific purposes.
Before I explain the issue, let me ...
0
votes
1
answer
97
views
How to import 'lightweight-charts' with ES module way?
I would like to use lightweight-charts library with ES module.
I would like to use lightweight-charts on browser so I followed instruction of the document
https://tradingview.github.io/lightweight-...
1
vote
1
answer
261
views
Inject migration angular didn't work on nx workspace [closed]
I use this nx generate @angular/core:inject to migrate projects but get below error:
Could not find any files to migrate under the path /home/jibit/Desktop/jibit-angular-workspace/. Cannot run the ...
2
votes
0
answers
85
views
VSCode typescript doesn't show error that tsc does
I have a monorepo with typescript project references and npm workspaces and I have a problem with mixed JS/TS code - while VSCode reports "all good" in a TS file, running tsc -b against the ...
0
votes
1
answer
101
views
Typescript ts config: noUnusedLocals & noUnusedParameters exclude folder
I want to use noUnusedLocals and noUnusedParameters for my app, but only in ./src folder.
"noUnusedLocals": true,
"noUnusedParameters": true,
I have a folder structure like so:
├──...
0
votes
1
answer
87
views
How to use TypeScript path on Node.js with tsc-watch?
I'm writing an application and decided to shorten paths using aliases. However, with all my settings I can't get Node.js to see the paths.
This is my tsconfig.json:
{
"compilerOptions": {
...
0
votes
0
answers
52
views
TSConfig settings to catch access before initialization reference errors
I have a function which accesses a variable which is declared below, but for some reason TS doesn't seem to show this as a warning or error (playground example).
// ts actually allows this...
function ...
0
votes
0
answers
95
views
Why does "moduleResolution": "node" resolve my TS7016 errors when looking for a declaration file?
I'm working on a few TS packages with the following setup and am getting TS7016 errors.
Module A (to-be-imported)
// package.json
"name": 'module-a'
...
"main": "./...
1
vote
1
answer
93
views
Sharing types between two TypeScript libraries
Is it possible to only share types between two separate libraries in a monorepo and/or modules? My most common situation is needing to share computed types between a server and client. I can't share ...
0
votes
1
answer
132
views
TypeScript compiler not reporting type errors in monorepository
The objective is to run the type-checking command from the root of the project, which should validate the code across all packages specified in the workspaces. The current setup successfully executes ...
0
votes
1
answer
104
views
types.d.ts is not being automatically included in every TypeScript file
I've noticed that the types.d.ts file in the root of the project was automatically included in every TypeScript file in my project. I didn't have to write import type {...} from "./types.d.ts&...
0
votes
0
answers
66
views
Build errors in node_modules files in Next.js application
When I build my Next.js application (using tsc -b and next build) I get errors in files inside node_modules even though I have skipLibCheck: true and "node_modules" in the "exclude"...
1
vote
0
answers
40
views
Unable to resolve signature of method decorator when called as an expression. Tsoa Error
Unable to resolve signature of method decorator when called as an expression.
The runtime will invoke the decorator with 2 arguments, but the decorator expects 3
@Get('/')
public async getAllUsers(...