【问题标题】:How to integrate exist project with jsconfig如何将现有项目与 jsconfig 集成
【发布时间】:2019-10-26 02:06:59
【问题描述】:

enter image description here我正准备将 jsconfig.json 与我现有的项目集成,以便从其 baseurl 选项中受益。正如 vs-code 显示的模板,我在我的客户端文件夹中添加了一个 jsconfig.json(它有自己的node_modules,与服务器完全分离)。但似乎不起作用。同时,它在jsconfig文件client/node_modules/harmony-reflect/index' not found的开头显示错误,但是当我yarn add Harmony-reflect到客户端模块时,错误仍然存在。这是代码:

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

你们能帮我解决这个问题吗?谢谢!

【问题讨论】:

    标签: javascript reactjs visual-studio-code


    【解决方案1】:

    我重新打开编辑器,问题就解决了。

    【讨论】:

    • 我也是。我什至没有注意到这是什么时候自动修复的。无论如何,至少我们可以继续我们的工作。谢谢你兄弟。 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-07
    • 2010-10-31
    • 1970-01-01
    • 2018-08-08
    • 1970-01-01
    • 1970-01-01
    • 2020-05-04
    相关资源
    最近更新 更多