Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

How to integrate exist project with jsconfig

$
0
0

I was about to integrate jsconfig.json with my existing project for benefitting from its baseurl option.As the template showed by vs-code,I added a jsconfig.json to my client folder(which has its own node_modules, completely separated from server).But seems like it doesn't work.Meanwhile, it shows an error at the beginning of the jsconfig file client/node_modules/harmony-reflect/index' not found, but when I yarn add harmony-reflect to client modules,the error still exists.Here is the code:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "components/*": ["./src/js/components/*"]
    },
    "module": "es6",
    "target": "es2020"
  },
  "exclude": ["node_modules"]
}

Could you guys help me with this?Thanks!


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>