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

Single lingual JSON:API Extras proxy bug #515

Closed
Tracked by #512
Decipher opened this issue May 29, 2022 · 0 comments · Fixed by #516
Closed
Tracked by #512

Single lingual JSON:API Extras proxy bug #515

Decipher opened this issue May 29, 2022 · 0 comments · Fixed by #516
Labels
bug Something isn't working module: druxt Related to the `druxt` module module: router Related to the `druxt-router` module

Comments

@Decipher
Copy link
Member

Describe the bug
When a Drupal 9 site doesn't have the configurable_language resource exposed, but has data for the resource in the jsonapi_resource_config resource as well as the latest version of Druxt with the API proxy enabled, you will encounter the following error:

 FATAL  Cannot read property 'attributes' of undefined                                                                                                                                                          09:28:29

  at node_modules/druxt/dist/druxt.ssr.js:367:222
  at Array.map (<anonymous>)
  at ModuleContainer.DruxtNuxtModule (node_modules/druxt/dist/druxt.ssr.js:367:209)
  at processTicksAndRejections (internal/process/task_queues.js:95:5)
  at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:20)
  at async ModuleContainer.DruxtSiteNuxtModule (node_modules/druxt-site/dist/druxt-site.ssr.js:71:5)
  at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:20)
  at async ModuleContainer.ready (node_modules/@nuxt/core/dist/core.js:51:7)
  at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:478:5)

To Reproduce
Steps to reproduce the behavior:

  1. Setup a site with the requirements provided above...

Expected behavior
No errors, site should work.

Media
N/A

Your Environment (please complete the following information):
N/A

Additional context
N/A

@Decipher Decipher added bug Something isn't working module: router Related to the `druxt-router` module module: druxt Related to the `druxt` module labels May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: druxt Related to the `druxt` module module: router Related to the `druxt-router` module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant