React auto import reddit / emacs ---------------------------------------------------------------------- Kind-Connection1284 · 2022-02-03 18:36 How do I setup emacs so that it auto-imports files in my React project? I have `company` `lsp` and the `ts-server` setup and I can't seem to make it auto-import components when I type them. I'm using doom emacs EDIT: Seems like the problem was that I was missing a `jsconfig.json` file in my project { "compileroptions": { "module": "es6", "target": "es6", "baseurl": "src" }, "include": ["src"], "exclude": ["node_modules"] } ​ ---------------------------------------------------------------------- yyoncho · 2022-02-03 19:43 I tested it and it seems like it works fine: https://gifyu.com/image/SzMLT ---------------------------------------------------------------------- Kind-Connection1284 · 2022-02-03 20:30 when I do something like that I only get things like "ComponentName (variable)", I can't get components from my project tree or from npm packages ---------------------------------------------------------------------- Kind-Connection1284 · 2022-02-03 20:35 [https://gifyu.com/image/SzMHF](https://gifyu.com/image/SzMHF) Like here I would like to import the Location component from the same folder.