#Use absolute imports over relative (tsconfig.json setup)
2 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
2 messages · Page 1 of 1 (latest)
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?
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you: