Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

requiring unknown module "1"

# This often just means you need to restart metro.
# 
# CTRL + C in your terminal running the server, then
npm start
# or
yarn start

# If this doesn't work, you may need to search for the running process and
# end it manually.
# The default port for Metro is 8081.
# If you've changed this, adjust the next line accordingly.

sudo lsof -i :8081
# This will give you info, including PID of apps running on this port.
kill -9 <PID of Node Server>
# example:
# kill -9 1234
 
PREVIOUS NEXT
Tagged: #requiring #unknown #module
ADD COMMENT
Topic
Name
8+8 =