Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make intellisense recognize index.jsx #123998

Closed
marialovesbeans opened this issue May 17, 2021 · 1 comment
Closed

Make intellisense recognize index.jsx #123998

marialovesbeans opened this issue May 17, 2021 · 1 comment
Assignees

Comments

@marialovesbeans
Copy link

does anyone know how to make VSCode to intellisense

import Home from 'components/home'

where Home's full path is

components/home/index.jsx

It seems VSCode intellisense only recognizes index.js and NOT index.jsx. How can I make it recognize .jsx as well? Thanks!

@IllusionMH
Copy link
Contributor

This is node specific resolution.
You might need to create jsconfig.json and set "moduleResolution": "node" in compilerOptions section.
For details see https://code.visualstudio.com/docs/nodejs/working-with-javascript and https://www.typescriptlang.org/tsconfig#moduleResolution

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants