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

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

Closed
ShamSundar17 opened this issue Nov 13, 2023 · 4 comments

Comments

@ShamSundar17
Copy link

ShamSundar17 commented Nov 13, 2023

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

@alois-beto
Copy link
Contributor

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)

@AaronH2001
Copy link

Hi @ShamSundar17, have you found a solution?

@fdrault
Copy link
Member

fdrault commented Feb 21, 2024

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

@fdrault
Copy link
Member

fdrault commented May 30, 2024

Close for inactivity

@fdrault fdrault closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants