Webpack Error Referenceerror Document Is Not Defined Gatsby