Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

"nuxt": "^4.2.0", server/middleware/auth.ts & server/api/auth.ts can not find defineEventHandler export default defineEventHandler(async (event) => { });
Yaphets's user avatar
  • 11
-1 votes
0 answers
16 views

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 ...
Yaphets's user avatar
  • 11
0 votes
0 answers
44 views

everyone. I've been stuck on a minor issue for a few days, but I haven't been able to find the answer, so I'm reaching out for your help. I am developing a personal project using Turborepo. The ...
Kapoo's user avatar
  • 1
0 votes
1 answer
89 views

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-...
KiYugadgeter's user avatar
  • 4,142
4 votes
0 answers
144 views

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 ...
kian's user avatar
  • 1,783
2 votes
0 answers
80 views

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 ...
hKaspy's user avatar
  • 146
0 votes
1 answer
99 views

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: ├──...
Marcel's user avatar
  • 1,107
0 votes
1 answer
74 views

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": { ...
Vitaliy's user avatar
  • 155
0 votes
0 answers
41 views

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 ...
Asleepace's user avatar
  • 3,745
0 votes
0 answers
83 views

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": "./...
b yf's user avatar
  • 1
1 vote
1 answer
81 views

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 ...
Sean's user avatar
  • 667
0 votes
1 answer
129 views

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 ...
Kotkoroid's user avatar
  • 472
0 votes
1 answer
89 views

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&...
Plantt's user avatar
  • 412
0 votes
0 answers
61 views

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"...
his dudeness's user avatar
1 vote
0 answers
38 views

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(...
Vishal Mishra's user avatar
0 votes
0 answers
52 views

In my Angular NX project I want to separate my app domains in folders with sub-folder for each feature/util/store etc. All exposed APIs are referenced in 'public-api.ts' barrel files in each of those ...
Marcello di Simone's user avatar
0 votes
0 answers
80 views

Okay so, I am creating a TypeScript library and I want it to run on Node.js and on the browser. I have a base tsconfig.json file, which sets some default configuration for TypeScript, and tsconfig....
Space.yg's user avatar
0 votes
0 answers
37 views

I would like to have a simple import for our component library, something like this: import { Button, Hero } from '@ui' I currently get the error Module '"@ui"' has no exported member '...
Jadam's user avatar
  • 1,827
0 votes
1 answer
282 views

When I create Next.js project. Running: npx create-next-app@latest Then I choose all options and TailwindCSS as well. But after installation the tailwind.config.ts file is not created at all. When I ...
Dmitruz Ruzhytskyi's user avatar
0 votes
0 answers
106 views

When building my NX Angular application I include **/env**.ts in tsconfig.app.json. I do this to compile all env files. However I determine which ones will be used in webpack.config.ts. I add files ...
user30124434's user avatar
0 votes
0 answers
20 views

I expect VS Code to underline a bad path for an image. If the correct path is import Logo from "./assets/logo.png";, then changing it to import Logo from "./assets/logo1.png"; ...
samurai_jane's user avatar
0 votes
0 answers
106 views

I want to create an NX generator to ensure that newly generated projects e.g. of type @nx/js:library have their compilerOptions module value set to "ESNext" and not "commonjs" at ...
robtot's user avatar
  • 1,069
0 votes
1 answer
25 views

I'm on TYPO3 12.4 and trying to hide the "create new content" button or the hole column "border" in TYPO3-Backend for a specific user-group (editors). It sounds like a simple task ...
Stefan Müller's user avatar
2 votes
1 answer
559 views

I'm using NX to host a monorepo with my frontend and my backend. My issue is that I'd like to share my TypeORM entities between my backend and frontend, but on the frontend side, instead of using the ...
Danilo Bassi's user avatar
1 vote
0 answers
62 views

I just upgraded my TYPO3 installation from 11 to 12 and now I am facing the fact that the HTML element inside my Carousel is changing my video tag to entities when I save my changes. I already looked ...
Luca's user avatar
  • 21
6 votes
2 answers
13k views

Typescript is launching --erasableSyntaxOnly flag in v5.8 that will throw an error if you use things like enum or parameter properties in classes (see article for more details). When I enable that ...
Vencovsky's user avatar
  • 32.1k
0 votes
0 answers
159 views

I use turborepo + vite + react + typescript. // apps/web/vite.config.ts import { defineConfig } from 'vite'; import path from 'path'; export default defineConfig({ resolve: { preserveSymlinks: ...
pjh's user avatar
  • 1
1 vote
2 answers
393 views

I am working with NestJs and Typescript 4.7.4. I am having an issue when Architecture team decide to update tsconfig like this compilerOptions: { "target": "es2020", ... } to ...
naPham's user avatar
  • 33
1 vote
0 answers
109 views

I implemented an SVG sprite file generation for all my SVG icons. It works and I have a fully working file within components/icons/sprites/icons.svg. Then inside my Index.tsx file I have: import { ...
heisenberg7584's user avatar
0 votes
0 answers
184 views

Trying to debug Nest.js application using vscode. Auto Attach: always Tried to find some relevant configuration, but could not find any, so I tried using the Next.js configuration suggested in this ...
A K's user avatar
  • 183
0 votes
1 answer
145 views

I'm working on an sub-module for an old school pure PHP project. This project has a folder for some JS dependencies. For my sanity, I'm using Typescript in the sub-module but I'm having trouble with ...
Abderrahim Benmelouka's user avatar
3 votes
1 answer
57 views

Error TS6202: Project references may not form a circular graph. My structure: -packages --utils --api utils/tsconfig.json ... references: [../api/src] api/tsconfig.json ... references: [../utils/src] ...
skripykez's user avatar
0 votes
0 answers
47 views

Here's my minimum working example: main.ts: let a = null; a = 5; tsconfig.json: { "compilerOptions": { "target": "es2016", "module": "commonjs&...
Jasmeet Brar's user avatar
0 votes
1 answer
175 views

My setup: ts.config setup { "compilerOptions": { "target": "es2016", "module": "NodeNext", "rootDir": "./src", &...
soumyadeep.eth's user avatar
2 votes
1 answer
89 views

By default, typescript treats readonly object properties as satisfying standard read/write properties during type checking. This happens without type assertions or any other trickery. This is a ...
recursive's user avatar
  • 86.5k
0 votes
0 answers
237 views

I have a monorepo that includes a Next.js application front-end, an Express back-end, and a component library. The component library is bundled with tsup using the following configuration: import { ...
Panhaboth K's user avatar
2 votes
0 answers
84 views

Two scenarios: A. A monorepo such as a PNPM workspace with a backend and a client. The backend will never be published as a package, being internal. The client, that will be published, uses types from ...
jjh's user avatar
  • 21
0 votes
1 answer
27 views

Here is my tsconfig: "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, "module": "ESNext", "...
bluven's user avatar
  • 23
0 votes
0 answers
128 views

Issue: Output file '/home/some_path/vite.config.d.ts' has not been built from source file '/home/some_path/vite.config.ts'. The file is in the program because: Matched by include pattern '**/*....
Jatan Trivedi's user avatar
0 votes
0 answers
153 views

Let's say I have a monorepo with a package app and a package lib: root/ package.json tsconfig.json packages/ app/ package.json ts.config.json App.tsx lib/ package....
Sasgorilla's user avatar
  • 3,290
0 votes
1 answer
59 views

I've got a NestJS app with compilerOptions.paths specified as follows: "paths": { "@core/interceptors": [ "core/interceptors/index.ts" ] } ...
mhld's user avatar
  • 298
0 votes
1 answer
231 views

I'd like to keep my source code and tests separate in my Typescript project: packages/ torgler/ package.json tsconfig.json src/ FlidgetTorgler.tsx WingleTorgler.tsx test/ ...
Sasgorilla's user avatar
  • 3,290
0 votes
1 answer
357 views

Update I found the reason. It's the order of settings in the tsconfig files. I have created a GIT repository where it can be reproduced. https://github.com/MBurchard/2024-12-04-vite-test The problem ...
Nabor's user avatar
  • 1,701
1 vote
1 answer
101 views

I’m using TYPO3 v12 and DCE (Dynamic Content Elements) extension. I have managed to remove the “Select & Upload Files” button from the standard content elements (Image, Image & Text, Media) ...
kameleonka's user avatar
0 votes
1 answer
205 views

I'm using yarn workspaces. Each of of my modules contains a tsconfig.json that extends a root level file. WebStorm previously seemed to be able to follow each file but has suddenly stopped doing so. ...
callmetwan's user avatar
  • 1,360
1 vote
1 answer
227 views

import { isEqual } from 'lodash'; onSave() { const isFormsEqual = isEqual( this.loyaltyRewardsFormFacade.currentRewardsState(), this.loyaltyRewardsFormFacade.transformFormData() );...
Galaktioni Danelia's user avatar
0 votes
1 answer
679 views

I'm trying to make I Nest.JS project use ES2022 cause I'm trying to use an ES module package. I have updated the tsconfig.json and paackage.json but it doesn't work as it keeps coming up with this ...
CodeGhinux's user avatar
0 votes
1 answer
633 views

I am trying to configure my tsconfig.json for a package inside my react native project with metro to add module resolution and make the code cleaner so instead of import { LABELS } from "../../../...
IshAsh's user avatar
  • 169
2 votes
2 answers
671 views

I'm building a monorepo using Nextjs for the frontend and bun & hono for the backend. I'm trying to use hono rpc: https://hono.dev/docs/guides/rpc. I'm exporting the type of my router like this in ...
charlietlamb's user avatar
0 votes
1 answer
108 views

I'm in the process of migrating my JS codebase to TS. It uses the method Math.sign(). However, the compiler gives this error- Property 'sign' does not exist on type 'Math'. Do you need to change your ...
user avatar

1
2 3 4 5
27