godon019
2/13/2019 - 7:45 AM

VSC absolute path with CRA

Caveat

this doesn't allow me to use click link to move to file functionality of VSC so I don't use it for Temple-Resource-Management now

when CRA with typescript

.env

NODE_PATH=src/

.vscode/settings.json

{
  "typescript.preferences.importModuleSpecifier": "non-relative"
}

tsconfig.json

{
  "compilerOptions": {
    ...
    "baseUrl": "./src"
  },
}

when just with javascript

https://stackoverflow.com/questions/51421545/is-it-possible-for-absolute-paths-to-autocomplete-in-visual-studio-code-vscode