Open jmarek-sky opened 3 years ago
Hello @jmarek-sky Thank you for the bug report! Can you provide a simple reproduction for debugging? I'd like to add that as a test case.
A quick look at the code there's no obvious source for such an error. Except if chokidar did this wrong, but I doubt that and I found no similar issue in their repository.
Additional feedback would be appreciated, thanks 🙂
Hi @c-vetter Sorry for a very delayed response, but I missed the email notification from GitHub among heaps of other emails. I encountered the same issue in one of my pet projects which is open sourced, so I can share the steps to reproduce with you:
git clone git@github.com:jar0s/reactNative-babel-wla.git
cd reactNative-babel-wla
yarn install
cd ios_template && pod install && cd ..
npx tsconfig.js --once
error: Error while processing /path/to/reactNative-babel-wla/ios_template/Pods/CocoaAsyncSocket/Source/GCD/GCDAsyncSocket.h
error: Unexpected identifier
error: Error while processing /path/to/reactNative-babel-wla/ios_template/Pods/CocoaAsyncSocket/Source/GCD/GCDAsyncUdpSocket.h
error: Unexpected identifier
info: Processing complete, with 3702 errors, see above for details
I have a pretty standard project using React Native. It. has some cocoapods installed or the iOS version.
When I run
npx tsconfig.js --once
I get heaps (3829 to be exact) of errors like the one below (I included only the last one as all of them are basically the same)It seems that tsconfig.js tried to process all
*.h
files unnecessarily. When I enabled the debug logs, I saw:None of the
*.h
files match that pattern so I guess it must be some sort of a bug.I worked around it by ignoring the ios folder and running
npx tsconfig.js --once -- ios