I have a global footer referencing other items (yml files), which is referencing to the same footer, resulting in too big string to parse.

This wasn't a problem in TP4, but I noticed that I get a layout property on the referenced item.

Here's my global footer:

id: component-footer
componentName: Footer
  about: # FieldType: ContentList
 - id: media-services-page
 - id: sponsors-and-partners-page
 - id: governances-page
 - id: jobs-page
 - id: contact-us-page

I get this error when running npm start.

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000001286BA257C1 <JSObject>
    0: builtin exit frame: parse(this=000001286BA08FF1 <Object map = 00000250BCD82BA1>,0000001DCD7AE509 <Very long string[206909388]>)

    1: /* anonymous */(aka /* anonymous */) [C:\Git\jss-dc-error\node_modules\@sitecore-jss\sitecore-jss-manifest\dist\generator\pipelines\generateManifest\expandReferencedContent.js:18] [bytecode=0000009390F063C9 offset=88](this=00000237643822D1 <undefined>,i...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node_module_register
 2: v8::internal::FatalProcessOutOfMemory
 3: v8::internal::FatalProcessOutOfMemory
 4: v8::internal::Factory::NewRawOneByteString
 5: v8::internal::Smi::SmiPrint
 6: v8::internal::StackGuard::HandleInterrupts
 7: v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString
 8: v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString
 9: 00000085D2986B21

I have created a repository for you to reproduce the error: https://github.com/jeppeskovsen/jss-dc-error (see second commit)

Can I shorten the layout property? Or how would you suggest I fix this?

  • 1
    Can you clarify this question further? I'm not sure what's being asked or how a memory leak is involved? – Kam Figy Dec 26 '18 at 15:35
  • 1
    I have updated the description :) – Jeppe Skovsen Dec 27 '18 at 21:18
  • 1
    Not really an answer but I've brought this into the issue tracker for investigation. Thanks for the reproduction repo :) – Kam Figy Jan 8 '19 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.