google / generative-ai-docs

Documentation for Google's Gen AI site - including the Gemini API and Gemma
https://ai.google.dev
Apache License 2.0
1.71k stars 623 forks source link

Relative import of './mediapipe/web/graph_runner/graph_runner' fails in '/demos/palm/web/talking-character/src/apis' #62

Open hello-beyond opened 1 year ago

hello-beyond commented 1 year ago

When I try to build or run the project, I get the error message "Module not found: Error: Can't resolve './mediapipe/web/graph_runner/graph_runner' in '.../generative-ai-docs/demos/palm/web/talking-character/src/apis'".

hjopel commented 1 year ago

this worked for me: https://github.com/google/generative-ai-docs/pull/50

Talks2Bots commented 1 year ago

I had this same problem. I copied the mediapipe folder and its contents to the src/apis directory and that allowed me to run the project, although I still received the error.

shuaibaslam2019 commented 1 year ago

Its #50 not working for me either. Any other idea?

Thank you!

alpoktem commented 8 months ago

I patch-solved this by creating a directory called mediapipe in src/apis and then move src/apis/web, which is created in first run, under it.