在接下来的js中忽略TypeScript的错误

2022-05-07

以下示例是关于Javascript中包含在接下来的js中忽略TypeScript的错误用法的示例代码,想了解在接下来的js中忽略TypeScript的错误的具体用法?在接下来的js中忽略TypeScript的错误怎么用?在接下来的js中忽略TypeScript的错误使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:Ignoring TypeScript Errors in next js源码类型:Javascript
//Open next.config.js and enable the ignoreBuildErrors option 
//in the typescript config:

module.exports = {
  typescript: {
    // !! WARN !!
    // Dangerously allow production builds to successfully complete even if
    // your project has type errors.
    // !! WARN !!
    ignoreBuildErrors: true,
  },
}

本文地址:https://www.itbaoku.cn/snippets/785131.html