Crashes using gatsby on missing define __MANIFEST_PLUGIN_HAS_LOCALISATION__ using gatsby-plugin-manifest
See original GitHub issueWhen using NetlifyCMS in Gatsby, and using gatsby-plugin-manifest
, the admin panel crashes on the missing __MANIFEST_PLUGIN_HAS_LOCALISATION__
if statement:
https://github.com/gatsbyjs/gatsby/blob/f88a9e298261c64b3eb411ba4778ca23efd75287/packages/gatsby-plugin-manifest/src/gatsby-browser.js#L6
It gets added to gatsby here: https://github.com/gatsbyjs/gatsby/blob/f88a9e298261c64b3eb411ba4778ca23efd75287/packages/gatsby-plugin-manifest/src/gatsby-node.js#L210 The NetlifyCMS page doesn’t run via this webpack config?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Troubleshooting Common Errors - Gatsby
As you encounter errors while developing with Gatsby, it is likely you'll run ... Error: ReferenceError: window is not defined when running gatsby...
Read more >`gatsby develop` crashes every time a blog entry is changed
I seem to have fixed it by removing the entire img entry from the GraphQL query in gatsby-node.js . I've no idea what...
Read more >Gatsby JS Crash Course - YouTube
This is a 1 hour crash course on Gatsby JS which is a static site generator that runs on ... We will be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You are correct, when I move manifest up, the CMS no longer crashes 🌈
@laurenskling thanks man, after I moved the
gatsby-plugin-netlify-cms
after the manifest, it solved the problem.I guess, cms and netlify should be placed the last as we do not want to cache these “backend” for admin portal. The client side is what should be cached.
All good 👍