I’m attempting to connect MySQL with my React Native app on an Ubuntu 16.04 system. I have installed Express, body-parser, and MySQL and created a server.js file in my project. When I type
node server.js in the terminal, I get the following error:
error: bundling failed: ReferenceError: SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js) is not computed
I’m not sure what this error means or how to solve it. Can anyone provide assistance?