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

plupiseo  于 2024-01-08  发布在  Webpack
关注(0)|答案(1)|浏览(168)

当出现TS/lint错误时,构建崩溃,即看不到UI
x1c 0d1x的数据
即使我有ENV变量告诉webpack在错误时编译:

  1. ESLINT_NO_DEV_ERRORS=true
  2. TSC_COMPILE_ON_ERROR=true

字符串
有什么办法可以解决这个问题吗?
以下是所有相关信息:

  1. $ npx nx report
  2. > NX Report complete - copy this into the issue template
  3. Node : 17.6.0
  4. OS : darwin arm64
  5. yarn : 1.22.18
  6. nx : 14.4.3
  7. @nrwl/angular : Not Found
  8. @nrwl/cypress : 14.4.3
  9. @nrwl/detox : Not Found
  10. @nrwl/devkit : 14.4.3
  11. @nrwl/eslint-plugin-nx : 14.4.3
  12. @nrwl/express : 14.4.3
  13. @nrwl/jest : 14.4.3
  14. @nrwl/js : 14.4.3
  15. @nrwl/linter : 14.4.3
  16. @nrwl/nest : Not Found
  17. @nrwl/next : Not Found
  18. @nrwl/node : 14.4.3
  19. @nrwl/nx-cloud : 14.2.0
  20. @nrwl/nx-plugin : Not Found
  21. @nrwl/react : 14.4.3
  22. @nrwl/react-native : Not Found
  23. @nrwl/schematics : Not Found
  24. @nrwl/storybook : 14.4.3
  25. @nrwl/web : 14.4.3
  26. @nrwl/workspace : 14.4.3
  27. typescript : 4.7.4
  28. ---------------------------------------
  29. Community plugins:

4xy9mtcn

4xy9mtcn1#

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

相关问题