react-native-file-logger icon indicating copy to clipboard operation
react-native-file-logger copied to clipboard

Possible Unhandled Promise Rejection (id: 1): TypeError: Cannot read property 'configure' of null

Open ShamSundar17 opened this issue 2 years ago • 3 comments

Unable to call the function FileLogger.configure({ logLevel: LogLevel.Debug }).then(() => console.log('File-logger configured'), ); Throws warning as follows 'Possible Unhandled Promise Rejection (id: 1): TypeError: Cannot read property 'configure' of null' I'm Using NX react native project

ShamSundar17 avatar Nov 13 '23 09:11 ShamSundar17

It seems the lib is not linked properly. Normally, rect-native automatically links libs at compile time, but it doesn't seem to have worked here 🤷‍♂️

You can try to unsinstall/re-install the react-native-file-logger, clean project and re-build (and don't forget pod install on ios)

alois-beto avatar Nov 13 '23 10:11 alois-beto

Hi @ShamSundar17, have you found a solution?

AaronH2001 avatar Jan 29 '24 20:01 AaronH2001

Please try with the last version [email protected] and tell us if the issue persist

fdrault avatar Feb 21 '24 16:02 fdrault

Close for inactivity

fdrault avatar May 30 '24 11:05 fdrault