Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

TypeScript: tsconfig.json is throwing the error "No inputs were found in config file"

$
0
0

Overview

I have a react native component library that I am exporting and I am getting the following error:

Error

No inputs were found in config file"/Users/jeff/Documents/react-native-components/node modules/react-native-components/tsconfig.ison'-Specified'include paths were "["src/**/*"]' and "exclude paths were "["./dist"]'. ts

tsconfig.json

{"compilerOptions": {    /* Basic Options */"target": "ESNext",                       /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */"module": "CommonJS",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */"lib": ["ES2017"],                        /* Specify library files to be included in the compilation. */"allowJs": true,                          /* Allow javascript files to be compiled. */"jsx": "react-native",                    /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */"declaration": true,                      /* Generates corresponding '.d.ts' file. */"outDir": "./dist",                       /* Redirect output structure to the directory. */"rootDir": "./src","noEmit": false,                          /* Do not emit outputs. */"incremental": true,                      /* Enable incremental compilation */"isolatedModules": false,                 /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */"resolveJsonModule": true,    /* STRICT TYPE-CHECKING OPTIONS */"strict": true,                           /* Enable all strict type-checking options. */"strictFunctionTypes": true,              /* Enable strict checking of function types. */    // MODULE RESOLUTION OPTIONS"moduleResolution": "node",               /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */"baseUrl": "./",                          /* Base directory to resolve non-absolute module names. */"types": [],                              /* Type declaration files to be included in compilation. */"allowSyntheticDefaultImports": true,     /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */"esModuleInterop": true,                  /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */"skipLibCheck": false                     /* Skip type checking of declaration files. */  },"include": ["./src/**/*.ts", "./src/**/*.tsx"],"exclude": ["dist","node_modules","src/**/*.test.tsx","src/**/*.stories.tsx",  ],"compileOnSave": false,"buildOnSave": false}

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>