Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.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
Angular tsconfig目录外部的Libs-如何配置?_Angular_Typescript_Tsconfig - Fatal编程技术网

Angular tsconfig目录外部的Libs-如何配置?

Angular tsconfig目录外部的Libs-如何配置?,angular,typescript,tsconfig,Angular,Typescript,Tsconfig,我正在制作angular 4应用程序。我的jsLibs文件夹位于应用程序目录之外。我必须配置tsconfig.json才能使其正常工作 以下是我在angular cli生成后的干净tsconfig.json: { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "baseUrl": "src", "sourceMap": true, "declaration"

我正在制作angular 4应用程序。我的
jsLibs
文件夹位于应用程序目录之外。我必须配置
tsconfig.json
才能使其正常工作

以下是我在
angular cli
生成后的干净
tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "baseUrl": "src",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2016",
      "dom"
    ]
  }
}
我正在向
编译器选项添加:

"rootDirs": [
  "src",
  "../../../libsNg/schemater/src/app/schemater"
],
并从“/schemater.module”导入
import{SchematerModule}仍不工作

src/app/schemater
中是
schemater.module.ts
文件


如何配置它?

如何导出您的
schemater.module.ts
@NgModule({…})导出类SchematerModule{}
当我将整个目录放入
app/
文件夹时,所有这些都在工作