Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typecheck failing in one of node_modules #9862

Open
sudesh-poojari opened this issue Oct 23, 2020 · 1 comment
Open

Typecheck failing in one of node_modules #9862

sudesh-poojari opened this issue Oct 23, 2020 · 1 comment

Comments

@sudesh-poojari
Copy link

I installed one of our private package owned by some other team.

While development getting error after typecheck on that package as below

Failed to compile.

/path/to/repo/node_modules/<PACKAGE>/<SOME_FILES>.ts
TypeScript error in /path/to/repo/node_modules/<PACKAGE>/<SOME_FILES>.ts(378,17):
Type 'undefined' is not assignable to type 'SOME_DEFINITION'.  TS2322

How can I ask typescript to skip typechecking certain modules.

my tsconfig as below

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react",
    "baseUrl": ".",
    "paths": {
      "@styled": ["src/styles/helpers/styled"]
    }
  },
  "include": ["src"]
}

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant