Path-browserify could not be found within the project or in these directories: node_modules

I am facing issue when trying to do some CRUD operations in react-native cli project, if i remove realm code than everythings work fine and following error i am getting.
error: Error: Unable to resolve module path-browserify from /Users/abhishektrivedi/Desktop/myApp/node_modules/realm/dist/platform/react-native/fs.js: path-browserify could not be found within the project or in these directories:
node_modules
18 | //
19 | ////////////////////////////////////////////////////////////////////////////

20 | const path_browserify_1 = require(“path-browserify”);
| ^
21 | const file_system_1 = require(“…/file-system”);
22 | const debug_1 = require(“…/…/debug”);
23 | const binding_1 = require(“…/binding”);

1 Like

There is a patch for this in v12.6.2

More information in the release notes here