#Use absolute imports over relative (tsconfig.json setup)

2 messages · Page 1 of 1 (latest)

indigo orbit
#

Hi,
I would like to use absolute imports in typescript, but I cannot use. I set up in tsconfig.json the following options:

"baseUrl": ".",
"paths": {
  "~/*": ["./src/*"],
}

When I create an import, I get back a MODULE_NOT_FOUND error.

Is there an option in Payload to use absolute imports?

west escarpBOT