sst / ion

SST v3
https://sst.dev
MIT License
1.84k stars 219 forks source link

intellisense is not working for `sst.config.ts` file and it's showing warning for `sst` and `$config` ? #210

Closed a-eid closed 5 months ago

a-eid commented 5 months ago

intellisense is not working for sst.config.ts file and it's showing warning for sst and $config, resources are inferred as any.

Screenshot 2024-04-10 at 1 36 37 PM

Screenshot 2024-04-10 at 1 36 47 PM

Screenshot 2024-04-10 at 1 37 01 PM

thdxr commented 5 months ago

do you have this at the top of your file?
///

a-eid commented 5 months ago

@thdxr I do, and I'm getting some intellisense support for $config.

Screenshot 2024-04-10 at 10 58 32 PM
a-eid commented 5 months ago

something in my tsconfig doesn't seem to be working correctly.

Screenshot 2024-04-10 at 11 00 48 PM

removing it does solve the issue.

// base config.
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Default",
  "compilerOptions": {
    "declaration": true,
    "declarationMap": true,
    "esModuleInterop": true,
    "incremental": false,
    "isolatedModules": true,
    "lib": ["es2022", "DOM", "DOM.Iterable"],
    "module": "NodeNext",
    "moduleDetection": "force",
    "moduleResolution": "NodeNext",
    "noUncheckedIndexedAccess": true,
    "resolveJsonModule": true,
    "skipLibCheck": true,
    "strict": true,
    "target": "ES2022"
  }
}