While attempting to compile a React project using the default tsconfig.json
provided by create-react-app
, I encountered a baffling error that has me stumped.
$ tsc
error TS2488: Type 'never' must have a '[Symbol.iterator]()' method that returns an iterator.
When trying to build with npm run build
, the following message appears:
Creating an optimized production build...
Failed to compile.
TypeScript error in undefined(undefined,undefined):
Type 'never' must have a '[Symbol.iterator]()' method that returns an iterator. TS2488
I am only receiving this error without any additional information, such as file names or context. Is there a way to access more detailed logs from the compiler for further insight? Thank you!