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!