Cannot build a project with "noImplicitAny": true
when react-aria is a dependency
#6417
-
Heya, I'm looking for some help or feedback on whether I'm experiencing a bug or a configuration problem. I have a NextJS project where I use react-aria as a dependency, and I run into a type error when I try to build:
I'm not sure why I get type errors in a dependency of mine. I have I'm wondering if building with react-aria as a dependency is unsupported if I want to use This is my tsconfig: {
"compilerOptions": {
"target": "es2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
// TODO: We should strive towards this being true.
// react-aria has issues building with it being true for now.
"noImplicitAny": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noUncheckedIndexedAccess": true,
"baseUrl": "src",
"paths": {
...
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs"],
"exclude": ["node_modules"]
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Possibly will be fixed by working on #3183 |
Beta Was this translation helpful? Give feedback.
Possibly will be fixed by working on #3183
Otherwise can be discussed after that work is done. Things that will be asked are the same as #1890 (comment)