You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When running in development environment (gatsby develop), on each page load I get:
Error in function eval in ./node_modules/react-helmet/es/Helmet.js:512
Unexpected end of input
./node_modules/react-helmet/es/Helmet.js:512
511 | newTags.forEach(function (tag) {
> 512 | return headElement.appendChild(tag);
513 | });
This does not happen in production (gatsby build)
I am able to simply close the window and as far as I can tell, react-helmet is still injecting everything I need it to.
If the current behavior is a bug,
please provide the steps to reproduce and if
possible a minimal demo of the problem.
Your bug will get fixed much faster if we can run your
code and it doesn't have dependencies other than React and react-helmet.
Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or
CodeSandbox (https://codesandbox.io/s/new) example below:
Can provide later, checking if anyone spots an obvious error for now. Below is the contents of the react-helmet portion of my seo.js component.
+1 having the same issue trying to use Helemt to add OneTrust to the Head. @adstr123 do you also get the following console error related to otSDKStub.js : Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
After some research, I found out, that it is probably not related to react helmet. Appearently it is caused by using inline JS inside the <script> tag inside the JSX. So the problematic line here is this one:
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When running in development environment (
gatsby develop
), on each page load I get:gatsby build
)If the current behavior is a bug,
please provide the steps to reproduce and if
possible a minimal demo of the problem.
Your bug will get fixed much faster if we can run your
code and it doesn't have dependencies other than React and react-helmet.
Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or
CodeSandbox (https://codesandbox.io/s/new) example below:
Can provide later, checking if anyone spots an obvious error for now. Below is the contents of the react-helmet portion of my
seo.js
component.Output of
gatsby info
:Also relevant:
The text was updated successfully, but these errors were encountered: