Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
I am trying to link react-native-fs but it is giving error.
react-native link react-native-fs throws bellow error:
(node:20315) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use
node --trace-warnings ...to show where the warning was created
And then node --trace-warnings ... shows this:
node:internal/modules/cjs/loader:944 throw err; ^
Error: Cannot find module '/Users/myusername/Documents/Folder/Projectfolder/...' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15) at Function.Module._load (node:internal/modules/cjs/loader:774:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
What could be the issue?
Same issue, did you find the answer?
What helped me solving this problem was uninstalling react-native-cli globally:
npm uninstall -g react-native-cli (as mentioned in the React Native documentation.