Answers for "cannot find definition file for"

0

cannot find definition file for

// tsconfig.json
{
  "compilerOptions": {
     "target": "es5",
     "module": "commonjs",
     "allowJs": true,
     "jsx": "react",
     "strict": true,
     "noImplicitAny": true,
     "typeRoots": [
        "src/@typings",
        "src/actions/@types",
        "src/components/@types",
        "src/reducers/@types",
        "node_modules/@types"
     ],
     "esModuleInterop": true,
     "skipLibCheck": true,
     "forceConsistentCasingInFileNames": true,
     "resolveJsonModule": true,
     "outDir": "./build",
     
  },
  "include": ["./src/**/*"],
  "exclude": ["node_modules", "build", "public"],
}

// cannot find definition file for actions .... Move the d.ts into actions, reducers, components etc.
// this works.
Posted by: Guest on May-20-2021

Code answers related to "cannot find definition file for"

Browse Popular Code Answers by Language