Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderRichText is not defined while adding the module via installModule #529

Open
1 task done
rezkileap opened this issue Aug 21, 2023 · 0 comments
Open
1 task done
Labels
pending-author [Issue] Awaiting further information or action from the issue author pending-triage [Issue] Ticket is pending to be prioritised

Comments

@rezkileap
Copy link

rezkileap commented Aug 21, 2023

Describe the issue you're facing

Unable to include storyblok nuxt module while creating Nuxt module using installModule.

snippet of the module.ts for including the module using installModule
await installModule('@storyblok/nuxt', { // module configuration accessToken: 'token' })

Reproduction

n/a

Steps to reproduce

https://nuxt.com/docs/guide/going-further/modules

  1. npx nuxi init -t module my-module
  2. pnpm install
  3. pnpm add @storyblok/nuxt
  4. add the code to the module.ts
    await installModule('@storyblok/nuxt', { // module configuration accessToken: 'token' })
  5. create a component that use renderRichText function
  6. run the developer server with pnpm run dev

System Info

System:
    OS: macOS 13.5.1
    CPU: (8) arm64 Apple M1
    Memory: 709.20 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.5.1 - ~/.nvm/versions/node/v20.5.1/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.8.0 - ~/.nvm/versions/node/v20.5.1/bin/npm
    pnpm: 8.6.12 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 116.0.5845.96
    Edge: 115.0.1901.203
    Safari: 16.6

Used Package Manager

pnpm

Error logs (Optional)

500
renderRichText is not defined

at ReactiveEffect.fn (http://localhost:3000/_nuxt/@fs/Users/userName/Desktop/test/component-copy-automation/src/runtime/components/Utility/RichTextRenderer.js?t=1692579895035:14:32)
at ReactiveEffect.run (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:423:19)
at get value [as value] (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:1383:35)
at unref (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:1263:29)
at Object.get (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:1269:35)
at Proxy._sfc_render (http://localhost:3000/_nuxt/@fs/Users/userName/Desktop/test/component-copy-automation/src/runtime/components/Utility/RichTextRenderer.js?t=1692579895035:30:25)
at renderComponentRoot (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:2224:17)
at ReactiveEffect.componentUpdateFn [as fn] (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:7099:46)
at ReactiveEffect.run (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:423:19)
at instance.update (http://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-7X7QCCMF.js?v=0805de93:7212:52)

Validations

@rezkileap rezkileap added pending-author [Issue] Awaiting further information or action from the issue author pending-triage [Issue] Ticket is pending to be prioritised labels Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-author [Issue] Awaiting further information or action from the issue author pending-triage [Issue] Ticket is pending to be prioritised
Projects
None yet
Development

No branches or pull requests

1 participant