question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes using gatsby on missing define __MANIFEST_PLUGIN_HAS_LOCALISATION__ using gatsby-plugin-manifest

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
laurensklingcommented, Dec 4, 2019

You are correct, when I move manifest up, the CMS no longer crashes 🌈

1reaction
franvacommented, Aug 24, 2020

@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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found