JS SDK 8.0 – TypeError: Cannot read properties of undefined (reading 'getCacheStore') with sample code

JS SDK 8.0 – TypeError: Cannot read properties of undefined (reading 'getCacheStore') with sample code

Hello Zoho Support Team,

I’m integrating the Zoho CRM JavaScript SDK v8.0 and I’m getting the error below when running your official sample. I tested directly from:
https://github.com/zoho/zohocrm-javascript-sdk-8.0/blob/main/samples/create_records_sample/create_records.js

Console error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getCacheStore') at getFieldsInfo (zohocrmsdk-8-0.js:1) at async getFieldsInfo (zohocrmsdk-8-0.js:1) at getFields (zohocrmsdk-8-0.js:1) at createRecords (zohocrmsdk-8-0.js:1) at createRecords (zoho.js:322) at s.onload (zoho.js:28) at injectZoho (zoho.js:13) at eval (zoho.js:265) at eval (vue-router.mjs:3470) at runWithContext (runtime-core.esm-bundler.js:339)

Expected behavior:
Following the sample flow (auth → fetch fields → create record) should successfully create a record.

Actual behavior:
When I trigger the sample call, a TypeError is thrown inside the SDK indicating getCacheStore is undefined, and the flow stops.

Sample used:
create_records_sample/create_records.js (used as-is with minimal wiring into my app)

Additional notes/observations:

  • The stack trace shows Vue 3 (vue-router) frames; the project runs inside a Vue 3 SPA.

  • The error occurs along the getFieldsInfo → getFields → createRecords chain, as if the SDK’s internal cache/store hasn’t been initialized before access.

  • I followed the sample’s ZOHO.CRM init/auth steps. If an explicit cache/store configuration is required in v8, could you please clarify the correct setup?

I’d appreciate guidance on how to resolve this. I can provide more details if needed (see environment below).

Environment:

  • SDK: zohocrm-javascript-sdk 8.0

  • Framework: Vue 3

  • Browser: Chrome (latest)

  • Runtime: Browser (SPA)

Thanks!


Omer Yuce

    • Sticky Posts

    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are
    • Kaizen #152 - Client Script Support for the new Canvas Record Forms

      Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
    • Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script

      Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.
    • Kaizen #210 - Answering your Questions | Event Management System using ZDK CLI

      Hello Everyone, Welcome back to yet another post in the Kaizen Series! As you already may know, for the Kaizen #200 milestone, we asked for your feedback and many of you suggested topics for us to discuss. We have been writing on these topics over the