babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

Auto suggestions of file name not working in VSCode when importing (alias name / ) Example : @root/

Open KeerthanaManoharan opened this issue 7 years ago • 2 comments

VSCode not giving auto suggestions of file name inside the directory once we are using alias name with babel module resolver plugin for react native . I am having .js file inside the path @components but it is simply giving the suggestion as @components/ showing the suggestion as {} react,{} props,{} react-native

My .babelrc file : { "presets": [ "react-native" ], "plugins": [ [ "module-resolver", { "cwd": "babelrc", "root": [ "./src" ], "alias": { "@components": "./src/components", "@root": "./src/" } } ] ] }

Please give me a solution.Thanks in advance.

KeerthanaManoharan avatar Sep 24 '18 06:09 KeerthanaManoharan

Same here

JanedoeGVA avatar Oct 25 '18 08:10 JanedoeGVA

Look at ‘https://code.visualstudio.com/docs/languages/jsconfig.

zsh-only avatar Sep 19 '19 10:09 zsh-only