如何不使 nrwl/nx 项目中的 TS/lint 错误构建崩溃

问题描述 投票:0回答:1

当出现 TS/lint 错误时,构建会崩溃,即看不到 UI

即使我有 ENV 变量告诉 webpack 在错误时进行编译:

ESLINT_NO_DEV_ERRORS=true
TSC_COMPILE_ON_ERROR=true

有解决这个问题的想法吗?

以下是所有相关信息:

$ npx nx report


 >  NX   Report complete - copy this into the issue template

   Node : 17.6.0
   OS   : darwin arm64
   yarn : 1.22.18

   nx : 14.4.3
   @nrwl/angular : Not Found
   @nrwl/cypress : 14.4.3
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.4.3
   @nrwl/eslint-plugin-nx : 14.4.3
   @nrwl/express : 14.4.3
   @nrwl/jest : 14.4.3
   @nrwl/js : 14.4.3
   @nrwl/linter : 14.4.3
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : 14.4.3
   @nrwl/nx-cloud : 14.2.0
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 14.4.3
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.4.3
   @nrwl/web : 14.4.3
   @nrwl/workspace : 14.4.3
   typescript : 4.7.4
   ---------------------------------------
   Community plugins:
webpack webpack-dev-server nrwl-nx nrwl
1个回答
0
投票

我不知道答案,但我从 CSS 中隐藏了错误面板。它不是用于构建的解决方案,仅用于开发。 (我最终使用 @nx/vite 插件迁移到 Vite。)

© www.soinside.com 2019 - 2024. All rights reserved.