I want to import a config file with typescript, while avoiding using relative paths.
config.ts
export = {
var1: "hrqedfc",
var2: "gbrdf"
}
app.ts
const config = require("@app/config")
console.log(config)
I would like, if possible, to use the typescript way of importing things (import config from “config”)
The error I currently have is: Error: Cannot find module 'config'