Open 14gasher opened 2 years ago
Found more information:
[Error: undefined (from plugin: gatsby-plugin-material-ui)] {
type: 'RedirectRequest',
uri: '/user/login',
unsafeBuiltinsUsage: [],
context: { path: '/user/', unsafeBuiltinsUsageByPagePath: {} }
}
This is the error logged from gatsby's renderHTMLQueue.
I'm returning Redirects from unauthorized routes. This might be the issue? Removing the redirects made the build work successfully.
Replacing all Redirects with navigates wrapped in useEffect makes this work. Would be nice if I could just return a Redirect though haha.
While building, I get the following error:
This only happens when this plugin is being used. It does not occur if the gatsby emotion is being used.
Dependencies if it helps:
"@emotion/react": "^11.7.1", "@emotion/styled": "^11.6.0", "gatsby": "^4.6.0", "gatsby-plugin-material-ui": "4.1.0", "react": "^17.0.1", "gatsby-source-filesystem": "^4.6.0"