Skip to content
Discussion options

You must be logged in to vote

All good now @RomainLanz Thank you.
I've added "baseUrl" under compilerOptions in my tsconfig and It worked!.

{
  ...
 "compilerOptions": {
    ...
    "baseUrl": "./", // <-- add baseUrl
    ...
 }
  ...
}

final tsconfig.json

{
  "extends": "adonis-preset-ts/tsconfig.json",
  "include": [
    "**/*"
  ],
  "exclude": [
    "node_modules",
    "build"
  ],
  "compilerOptions": {
    "outDir": "build",
    "rootDir": "./",
    "baseUrl": "./",
    "sourceMap": true,
    "paths": {
      "App/*": [
        "./app/*"
      ],
      "Config/*": [
        "./config/*"
      ],
      "Contracts/*": [
        "./contracts/*"
      ],
      "Database/*": [
        "./database/*"
      ]
    },
 …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@johngerome
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by johngerome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants