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

Nuxt 3 Contentful 'get' on Proxy did not return its actual value Error #1600

Open
JackEdwardLyons opened this issue Jan 10, 2023 · 0 comments

Comments

@JackEdwardLyons
Copy link

JackEdwardLyons commented Jan 10, 2023

Hi there, I have this error coming up in a variety of ways when running nuxt build. The error varies based on different Contentful content data, but the error looks like this:

 ERROR  [nuxt] [request error] [unhandled] [500] 'get' on proxy: property 'pageHero' is a read-only and non-configurable data property on the proxy target but the proxy did not return its actual value (expected '#<_ContentfulEntry>' but got '#<_ContentfulEntry>')
  at ./.nuxt/prerender/chunks/renderer.mjs:194:86  
  at Array.map (<anonymous>)  
  at stringify (./.nuxt/prerender/chunks/renderer.mjs:194:39)  
  at ./.nuxt/prerender/chunks/renderer.mjs:194:71  
  at Array.map (<anonymous>)  
  at stringify (./.nuxt/prerender/chunks/renderer.mjs:194:39)  
  at ./.nuxt/prerender/chunks/renderer.mjs:194:71  
  at Array.map (<anonymous>)  
  at stringify (./.nuxt/prerender/chunks/renderer.mjs:194:39)  
  at ./.nuxt/prerender/chunks/renderer.mjs:194:71

Expected Behavior

This error should not exist. I have no idea how to trace this error.

Actual Behavior

When I comment out the areas of my codebase that use pageHero, for example, the error still persists. Thus I assume it's related to something higher up the chain, like the actual content I am querying from Contentful. The stack trace doesn't provide any clues and the error expected '#<_ContentfulEntry>' but got '#<_ContentfulEntry>' is cryptic. I'm not sure how to dive deeper into the stack trace to actually see what the return value of #<_ContentfulEntry> is.

Possible Solution

No idea at this stage? Better stack tracing?

Steps to Reproduce

Very hard to reproduce at this stage without pulling apart the entire codebase and sharing sensitive information. I just wondered if anyone else has faced this issue and / or some helpful pointers to try and debug this issue?

Context

I'm trying to build and deploy my app in Nuxt 3 using nuxt build

Environment

  • Language Version: 18.12.0
  • Package Manager Version: 8.19.12
  • Operating System: Darwin ANZXKNW564K76 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64
  • Package Version: 9.2.11
  • Which API are you using?: Preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant