代码之家  ›  专栏  ›  技术社区  ›  Alan

有错误时,我做纱线建设(它叫tsc)和没有错误时,我做tsc的终端?

  •  1
  • Alan  · 技术社区  · 6 年前

    你知道为什么我会犯错吗 yarn build tsc )当我这样做的时候没有错误 tsc公司 在候机楼?

      "scripts": {
        "build": "tsc",
      }
    

    tsc公司 在终端中,不抛出错误:

    enter image description here

    成纱 在终端抛出错误: enter image description here

    skipLibCheck = true 所以我忽略了文件夹 node_module

      "compilerOptions": {
        "skipLibCheck": true,
      },
    

    https://app.usebubbles.com/c1d689be-bbf4-46c9-bd89-5983351d6717

    0 回复  |  直到 6 年前
    推荐文章