Docker Mount Configuration Container Creation Error

I’m trying to create a container from a docker image for a project I’m working on (project sidewalk). The container spins up correctly except for the last step where it gives me this error:

Creating projectsidewalk-db ... error                                                                                   
ERROR: for projectsidewalk-db  Cannot create container for service db: invalid volume specification: 'C:UsersjohnsOneDrivedocumentsGitHubsidewalkwebpagedbinit.sh:/docker-entrypoint-initdb.d/init.sh:rw': 
invalid mount config for type "bind": source path must be a directory

ERROR: for db  Cannot create container for service db: invalid volume specification: 'C:UsersjohnsOneDrivedocumentsGitHubsidewalkwebpagedbinit.sh:/docker-entrypoint initdb.d/init.sh:rw': 
invalid mount config for type "bind": source path must be a directory
ERROR: Encountered errors while bringing up the project.
make: *** [docker-up-db] Error 1

I’ve looked on other Stack Overflow threads and I’ve tried the fix where I create a new variable COMPOSE_CONVERT_WINDOWS_PATHS and set it equal to one, but it didn’t work. I was wondering if anyone knows how to fix this problem.

Source: StackOverflow