Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Cannot read property 'xxx' of undefined  #1

Description

@christina-grannas

I tried cloning this repo and walking through the steps in this guide: https://www.storyblok.com/docs/plugins/tool

I can see my app in the Tools panel but in the development terminal I get this error:

 ERROR  Cannot read property 'xxx' of undefined                                                                                                  

  at getStoryblokClient (node_modules/@storyblok/nuxt-auth/lib/utils/get-storyblok-client.js:16:40)
  at node_modules/@storyblok/nuxt-auth/lib/router.js:145:20
  at Layer.handle [as handle_request] (node_modules/express/lib/router/layer.js:95:5)
  at next (node_modules/express/lib/router/route.js:137:13)
  at Route.dispatch (node_modules/express/lib/router/route.js:112:3)
  at Layer.handle [as handle_request] (node_modules/express/lib/router/layer.js:95:5)
  at node_modules/express/lib/router/index.js:281:22
  at Function.process_params (node_modules/express/lib/router/index.js:335:12)
  at next (node_modules/express/lib/router/index.js:275:10)
  at Function.handle (node_modules/express/lib/router/index.js:174:3)
  at router (node_modules/express/lib/router/index.js:47:12)
  at Layer.handle [as handle_request] (node_modules/express/lib/router/layer.js:95:5)
  at trim_prefix (node_modules/express/lib/router/index.js:317:13)
  at node_modules/express/lib/router/index.js:284:7
  at Function.process_params (node_modules/express/lib/router/index.js:335:12)
  at next (node_modules/express/lib/router/index.js:275:10)

xxx being the ID of my space. I'm running version 1.4.0 of @storyblok/nuxt-auth were the error occurs.

Any ideas why this might happen?

I also cannot see the "You are currently editing {{story.name}}" either.

I have set CONFIDENTIAL_CLIENT_ID, CONFIDENTIAL_CLIENT_SECRET and CONFIDENTIAL_CLIENT_REDIRECT_URI in .env as specified in the guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions