[gatsby-transformer-remark] Including length in frontmatter may cause heap out of memory #26565
Labels
good first issue
Issue that doesn't require previous experience with Gatsby
help wanted
Issue with a clear description that the community can help with.
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
topic: remark/mdx
Related to Markdown, remark & MDX ecosystem
type: bug
An issue or pull request relating to a bug in Gatsby
Summary
I'm trying to include markdown files using
gatsby-transformer-remark
following this tutorial, it's great with what the tutorial provided, but once I included my own markdown files which looks like this:The website crashes and gives me a
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
After some playing around I figured out that the length property causes this issue, but I can't find any information about why this property is used in an unexpected way. Is there any document I should be aware of ? or should I just have to figure a way to avoid this situation?
Any help would be nice, thanks.
Relevant information
Full error log:
Environment (if relevant)
System:
OS: Linux 4.19 Ubuntu 18.04.4 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 10.22.0 - ~/.local/nvm/versions/node/v10.22.0/bin/node
Yarn: 1.7.0 - /mnt/c/Program Files (x86)/Yarn/bin/yarn
npm: 6.14.6 - ~/.local/nvm/versions/node/v10.22.0/bin/npm
Languages:
Python: 2.7.17 - /usr/bin/python
npmPackages:
gatsby: ^2.23.12 => 2.23.12
gatsby-plugin-sass: ^2.3.12 => 2.3.12
gatsby-source-filesystem: ^2.3.24 => 2.3.24
gatsby-transformer-remark: ^2.8.28 => 2.8.28
npmGlobalPackages:
gatsby-cli: 2.12.68
The text was updated successfully, but these errors were encountered: