Open adstr123 opened 2 years ago
+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')
For anyone interested, I also had this issue.
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 Githubissues.
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: