I am getting the following error when using HelmetDatoCms tag:
Error in function HelmetDatoCms in ./node_modules/gatsby-source-datocms/index.js:34
Cannot read property 'concat' of null
32 | rest = _objectWithoutProperties(_ref, ["seo", "favicon", "children"]);
33 |
> 34 | return React.createElement(Helmet, rest, (seo ? seo.tags : []).concat(favicon ? favicon.tags : []).map(function (item, i) {
| ^
35 | return React.createElement(item.tagName, objectAssign({
36 | key: "helmet-datocms-".concat(i)
37 | }, objectEntries(item.attributes || {}).reduce(function (acc, _ref2) {
I am using:
โgatsbyโ: โ^3.7.2โ,
โgatsby-source-datocmsโ: โ^2.6.16โ,
and following the instructions as described in the docs:
seoMetaTags {
...GatsbyDatoCmsSeoMetaTags
}
<HelmetDatoCms seo={page.seoMetaTags} />