React Native import module with absolute path and Keep IntelliSense in VSCode

葉明哲 (Brian Yeh)
1 min readAug 9, 2018

--

After I refer https://medium.com/@davidjwoody/how-to-use-absolute-paths-in-react-native-6b06ae3f65d1 to complete the absolute path import, IntelliSense is not working in VSCode.

To solve this problem, all you have to do is create jsconfig.json file at the top of your project.

Add the following content in jsconfig.json:

{
"compilerOptions": {
"module": "es6"
}
}

--

--

葉明哲 (Brian Yeh)

沒事就愛寫點小程式,夢想能建立一個永續的軟體團隊