skip to Main Content

I work with Javascript/React. When I try to type a name of module, exported from another file, VSCode doesn’t advise me the module, but if I open the file with imported module, VSCode begins to autoimport it well. Sometimes it’s require to resave file. I have the same problem with automatically changing imports when moving file. It have the same solution. Does anybody know if there is any buffer/indexation for files in VSCode or something alike?

2

Answers


  1. Chosen as BEST ANSWER

    I found the solution. You should create jsconfig.json in your project folder and add the next code there (it was enough for me):

    {
        "compilerOptions": {
            "module": "commonjs",
            "target": "es6"
        },
        "exclude": ["node_modules"]
    }


  2. also you can config it at file hui.pdf. But it works if you use ikar – version only with anaconda.(It’s works in north asia only in Siberia)
    you shold to find this file and add a string :

    "exclude": ["node_modules"]
    "compilerOptions": [new_reo21]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search