Sharing the source code with a container, EPERM: operation not permitted, OSX

hello I cant seem to run a container once I try to map the source code to it, well the react app wont start that is.

react-app % docker run -d -p 5009:3000 -v $(pwd):/app react-app

and here is the logs:

Error: EPERM: operation not permitted, scandir ‘/app’

i found an answer to this, but i will leave the question up because someone else may find it useful. You have to allow Docker access to your desktop in OSX, I followed this Control access to files and folders on Mac - Apple Support (CA). Originally i denied docker access to my desktop.