Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Error with render block after adding new component/block

default discord avatar
techinverted2 years ago
3

I have spent the better part of 2 days trying to fix this error so can anyone help me. I added some new components/blocks and a new products collection to payload. I then tried building my NEXTJS fronend but I kept getting this error. From what I understand there seems to be a mismatch in one of my blocks. But after multiple attempts to disable them one by one and trying and still receiving this error I've come here



Please find the error attached

  • default discord avatar
    christopher.nowlan2 years ago

    You codes says that propertyFeatureFields is missing type specificationGridFields

  • default discord avatar
    jessrynkar2 years ago

    Hey

    @149873958760480769

    - can you show me the props you have defined in

    RenderBlocks

    ?

  • default discord avatar
    techinverted2 years ago

    Hi there!

    @854377910689202256

    I wanted to share an update on the issue i was experiencing with building my frontend. After some investigation, I discovered that the issue was caused by a field in specificationGridFields that was no longer present. This missing field was causing a type error, which was preventing the code from running properly.



    To fix the issue, I removed the missing untitled field from specificationGridFields using payloadcms, which resolved the type error and allowed the code to run successfully. However, I'm concerned that this issue may arise again in the future.



    What would be a good method to prevent similar issues from occurring in the future? I think I need to implement a more robust error handling or testing system. This could include more comprehensive testing procedures to catch issues like missing fields before they cause problems in the code. Additionally, would it be possible to implementing a system for tracking changes to payload and database collection, so that we can identify and address issues like missing fields more quickly and effectively.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.