#string.endsWith() does not exist?
30 messages · Page 1 of 1 (latest)
have you tried changing the target library to 'es2015' or later
how are you running the CLI
visual studio for ts?
weird but ok
anyways
is it passing any command line args? if so then it won't pick up the tsconfig unless specified
i've just run this
ok that's just running it from the terminal, not from your ide
anyways this
?
you'd have to specify the project manually to use the tsconfg, or you can use the command line to specify the lib
or you can just use plain tsc in the project root so it can pick up the tsconfig on its own
wait how do I do that?
ok so just ran tsc in the home root and still got this error
assuming you're already in your project root, you can use one of these
tsc
tsc --project ./tsconfig.json
tsc -p ./tsconfig.json
tsc ./util/saves.ts --project ./tsconfig.json
tsc ./util/saves.ts -p ./tsconfig.json
```otherwise, this will work
```sh
tsc ./util/saves.ts --lib=es2015
you're not supposed to run it from the home root, whatever that is, you're supposed to run it from the project root
ok do you have the es2023 in your tsconfig
!resolved