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.

problem when used in gatsby

See original GitHub issue

in https://github.com/Mastermindzh/react-cookie-consent/blob/master/src/index.js#L385

you are referring to a global location object.

When I use this component in a gatsby website (during yarn build), this is not defined and causes a build problem. Would it be possible to rewrite the default to be evaluated within the component?

see also https://www.gatsbyjs.org/docs/debugging-html-builds/

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
Luladjievcommented, May 25, 2020

Same issue when used in Next.js project

2reactions
Mastermindzhcommented, May 26, 2020

Should be fixed in version 5.0.1:

I only tested it in gatsby as that is the framework I have the most experience with: screencapture-localhost-8080-2020-05-26-17_16_30

Let me know if anything else has to be fixed 😃 Thanks again for the quick response peeps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Universal Issues In The Great Gatsby Essay - IPL.org
The universal issues present in The Great Gatsby relate to deceit, false love, and gender discrimination. Firstly, the concept of deceit is a...
Read more >
Troubleshooting Common Errors - Gatsby
Problems with the cache · Errors with common plugin configurations. Installing plugins for styling results in Generating SSR bundle failed · Errors in...
Read more >
Issues In The Great Gatsby - 764 Words - Bartleby.com
In the novel The Great Gatsby, F. Scott Fitzgerald conveys the hardships of Tom and Daisy's relationship, the dissatisfaction of wealth between the...
Read more >
The Problem of Poverty in 'The Great Gatsby' - Sojourners
Gatsby's extreme excess is a compensation for the inherent deficiency of socioeconomic capital that he was born into, such that even his big ......
Read more >
''The Great Gatsby'': Internal and External Conflict - Study.com
Nick's Struggle with Privilege. One example of internal struggle is in the narrator, Nick Carraway. · Tom's Affair with Myrtle · Daisy's Affair ......
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