You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am trying to use the field compilerOptions.paths in my tsconfig.json file, following the documentation but I cannot seem to be able to make it work.
So, I have the following settings re-maps:
paths: {
"@lib/*": ["src/lib/*"]
},
My source structure (sowing only TS files) is the following:
I try to import the file "test_rempas.ts" inside "index.ts", using import { test_fn } from '@lib/test_remaps.ts' and it tells me that the module '@lib/test_remaps.ts' cannot be found from index.ts.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I am trying to use the field
compilerOptions.paths
in my tsconfig.json file, following the documentation but I cannot seem to be able to make it work.So, I have the following settings re-maps:
My source structure (sowing only TS files) is the following:
I try to import the file "test_rempas.ts" inside "index.ts", using
import { test_fn } from '@lib/test_remaps.ts'
and it tells me that the module'@lib/test_remaps.ts'
cannot be found fromindex.ts
.Any ideas of what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions