V3 fails to build, unable to locate public directory

I am trying to build ohif as per this doc
I run this command NODE_ENV=production yarn run build and I get this error:

ERROR in unable to locate '/home/hasan/work/v3-trials/platform/public/**/*' glob

this path points to public directory that is empty. there is another public directory located in platform/app/public.

How to solve this?

@Hasan-aga, I tried the steps you mentioned, but was unable to see the issue. I also have never encountered this, so I am not sure what to say. Apologies.