I'm working on a project in React and ran into a problem that has me stumped.
Whenever I run yarn start
I get this error:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
I have no idea why this is happening, if anyone has experienced this I would be grateful.
const path = require( "path" )
and then usingpath
to join a subdirectory likepath.join( myDirectoryName )
. However,myDirectoryName
was sometimesnull
and that's what was causing this error to occur. – Joshua Pinteryarn rw upgrade
. Reverting that commit and runningyarn install
again (to downgrade) fixed the problem for me. I'll figure out the Redwood upgrade later. – Ryan