Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
84 views

I am using TypeScript 5.7.3. Installed @types/[email protected]. TypeScript config: { "compilerOptions": { "target": "ES2020", "moduleResolution": &...
2 votes
1 answer
77 views

I have an abstract Typescript class with a constructor. This constructor accepts an object and then tries to set properties of the class with the data in the object. export default class AbstractModel ...
1 vote
1 answer
668 views

I have the following code (example): User.ts ... import { UserFavoriteRoom } from "./UserFavoriteRoom.js"; import { Room } from "./Room.js"; import { Reservation } from "./...
7 votes
1 answer
4k views

So I am trying to update some typescript code that uses external library for big numbers to BigInt (ES2020) and linter is complaining a lot. I don't really understand what is going on here. It looks ...
user avatar
0 votes
1 answer
388 views

I have a TypeScript application working with es16 modules, most of them are imported statically. I want to use a (validator-) module now that is only imported in debug mode. It's all working, but I ...
0 votes
1 answer
723 views

i have this project on expressjs and I use typeorm and typescript. the problem is when i run project on develop mode (with app.ts), with the first request i get the error: node_modules/src/data-source/...
4 votes
0 answers
683 views

We are upgrading angular with nx workspace to latest The problem is when we run test, we got following errors feature-flag.mjs:93:20: ERROR: Transforming for-await loops to the configured target ...
1 vote
0 answers
182 views

I have updated my angular library project to angular 14 and while and building my app I am getting following Error Command ng build --base-href /home/ --configuration production ERROR: /node_modules/@...
0 votes
1 answer
186 views

is there a 1-step way to destructure object into 2 objects using some defined set of props. For example, having initial object const obj = { prop1: "Prop1", prop2: "Prop2", prop3: &...
Ross's user avatar
  • 1,659
1 vote
1 answer
3k views

I have tried this syntax in VSCode and Coderpad (both use Node version 16.4). let x = {} x?.something.foo As far as my understanding goes, this code shouldn't throw an error now, but return undefined....
4 votes
1 answer
290 views

I have the following class that extends the built in data type Set. It adds a little bit of extra functionality by checking that every element that wants to be added to the set conforms to the type ...
3 votes
0 answers
645 views

when building a skeleton NestJS app, it sets es2017 in tsconfig. When trying to change it to es2020, it seems to work but hard to say without testing everything. I was unable to find any insights ...
1 vote
1 answer
3k views

I have written a TS file, that loads in a 3rd party package, using import XXX { YYY, ABC, 123 }from 'XXX'; It will compile to CommonJS no issue, and thats OK. But I'd like to compile it to an ESModule....
3 votes
1 answer
2k views

I want to run some TypeScript Code written in ES2020 on Server Side. Currently i have running a ASP.NET Core Application so the idea was to run js via Jering.Javascript.NodeJS and nodejs. So started ...
0 votes
1 answer
2k views

I have simple TS project where this is my tsconfig.json { "compilerOptions": { "target": "es2020", "lib": ["es2020"], } } And I have one ...

15 30 50 per page
1
2 3 4 5

AltStyle によって変換されたページ (->オリジナル) /