ignite icon indicating copy to clipboard operation
ignite copied to clipboard

Use baseUrl in tsconfig for absolute paths

Open jamonholmgren opened this issue 3 years ago • 1 comments

We should discuss/consider using baseUrl in our tsconfig so we can change imports like this:

import { Thing } from "../../components/thing"

to this

import { Thing } from "components/thing"

Docs: https://www.typescriptlang.org/tsconfig#baseUrl

jamonholmgren avatar Aug 18 '21 15:08 jamonholmgren

I like to work on this issue @jamonholmgren

majidln avatar Aug 31 '21 14:08 majidln

This has been added to the cookbook!

https://infinitered.github.io/ignite-cookbook/docs/TypeScriptBaseURL

frankcalise avatar Oct 25 '22 13:10 frankcalise

Hi @frankcalise , can we use absolute path without "~" ? I tried but not working, what you think?

saeedghasemi72 avatar Oct 29 '22 07:10 saeedghasemi72

@saeedghasemi72 did you update the config paths ?

frankcalise avatar Oct 31 '22 18:10 frankcalise