calling a stack function in a tab navigator causes app to crash

Solution 1:

Delete the package-lock.json and node_modules and run npm install again.

enter image description here

I was getting this error:

Cannot find module '/stackoverflow/node_modules/vlq/dist/vlq.js'. Please verify that the package.json has a valid "main" entry

After installing a package, I was getting same error for a different packages. Looks like packages could not communicate each other