problem when used in gatsby
See original GitHub issuein 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:
- Created 3 years ago
- Reactions:5
- Comments:7 (4 by maintainers)
Top 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 >
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

Same issue when used in Next.js project
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:
Let me know if anything else has to be fixed 😃 Thanks again for the quick response peeps!