79327046

Date: 2025-01-03 16:28:55
Score: 0.5
Natty:
Report link

The paths configuration in your tsconfig.json is supposed to be placed inside the compilerOptions. Like this:

{
  "extends": "astro/tsconfigs/strict",
  "include": [".astro/types.d.ts", "**/*"],
  "exclude": ["dist"],
  "compilerOptions": {
    "verbatimModuleSyntax": true,
    "baseUrl": ".",
    "paths": {
      "@components/*": ["./src/components/*"],
      "@layouts/*": ["./src/layouts/*"],
      "@assets/*": ["./src/assets/*"],
      "@styles/*": ["./src/styles/*"]
    }
  }
}

Read more here; https://www.typescriptlang.org/tsconfig/#paths

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rvanlaarhoven