Prismic.getApi is not a function

I have my .env at the root :

PRISMIC_ACCESS_TOKEN=xyz
PRISMIC_CLIENT_ID=xyz
PRISMIC_CLIENT_SECRET=xyz
PRISMIC_ENDPOINT=https

The project npm start is ok I see my home page that does not require to getApi but as sson as I go to a page that need to getApi it brakes...
Does someone would have a tip please ?
What I missing ?
Thank you

Hello @jfpedneault

Thanks for reaching out to us.

To debug this, I need more information:

  1. What Prismic Kit and framework are you using?
  2. Can you share some code snippets?

Have you checked this thread? It might be helpful.

I am looking forward to hearing back from you.

Thanks,
Priyanka