react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

Open adarshkhatri opened this issue 4 years ago • 2 comments

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?

adarshkhatri avatar May 16 '21 12:05 adarshkhatri

Same issue, did you find the answer?

bekroz avatar Sep 15 '21 14:09 bekroz

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.

AmossDvir avatar May 07 '22 13:05 AmossDvir