Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/397.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在干净的Nest.js安装中忽略React.js源文件?_Javascript_Reactjs_Typescript_Nestjs_Tsconfig - Fatal编程技术网

Javascript 如何在干净的Nest.js安装中忽略React.js源文件?

Javascript 如何在干净的Nest.js安装中忽略React.js源文件?,javascript,reactjs,typescript,nestjs,tsconfig,Javascript,Reactjs,Typescript,Nestjs,Tsconfig,我有一个clean Nest.js安装和一个名为“client”的文件夹,其中包含create react app clean安装 假设项目结构为: ./ ...some Nest.js folders... client <- React.js is here ...some more Nest.js folders... tsconfig.json <- here the "client" folder is excluded in the "exclude" b

我有一个clean Nest.js安装和一个名为“client”的文件夹,其中包含create react app clean安装

假设项目结构为:

./
  ...some Nest.js folders...
  client <- React.js is here
  ...some more Nest.js folders...
  tsconfig.json <- here the "client" folder is excluded in the "exclude" block

您还必须排除
tsconfig.build.json中的文件夹

{
  "extends": "./tsconfig.json",
  "exclude": [
    "node_modules",
    "test",
    "dist",
    "**/*spec.ts",
    "client"
  ]
}

repo真的很简单。复制步骤:1。全局安装Nest.js并创建一个新的Nest.js安装2。在安装文件夹3内创建一个文件夹“client”。全局安装“创建react应用程序”工具,并在“客户端”文件夹4内创建新的react安装。转到项目根文件夹并运行“npm run start:dev”并查找错误w!那很近。正是我一直在寻找的!非常感谢。
{
  "extends": "./tsconfig.json",
  "exclude": [
    "node_modules",
    "test",
    "dist",
    "**/*spec.ts",
    "client"
  ]
}