-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
I am using react native 0.66 and after I import the shim file and run the app I get this error
error: Error: Unable to resolve module process ...
process could not be found within the project or in these directories:
node_modules
If you are sure the module exists, try these steps:
- Clear watchman watches: watchman watch-del-all
- Delete node_modules and run yarn install
- Reset Metro's cache: yarn start --reset-cache
- Remove the cache: rm -rf /tmp/metro-*
1 | if (typeof __dirname === 'undefined') global.__dirname = '/'
2 | if (typeof __filename === 'undefined') global.__filename = ''
3 | if (typeof process === 'undefined') {
| ^
4 | global.process = require('process')
5 | } else {
6 | const bProcess = require('process')
talithavanlith and kashan20
Metadata
Metadata
Assignees
Labels
No labels