I tried adding it to the Head as well, but got the same error. I am Trying to access from a component in the project.