Skip to content

Commit 6a0682d

Browse files
committed
Fix building errors (move whatwg-fetch to gatsby-browser)
1 parent a1b03bb commit 6a0682d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gatsby-browser.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
* See: https://www.gatsbyjs.org/docs/browser-apis/
55
*/
66

7-
// You can delete this file if you're not using it
7+
import 'whatwg-fetch'
8+
9+
export const onClientEntry = () => {
10+
// export an empty module to make sure the import is used
11+
}

src/components/Meetup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { Component } from 'react'
22
import PropTypes from 'prop-types'
33
import format from 'date-fns/format'
4-
import 'whatwg-fetch'
54
import { graphql, StaticQuery } from 'gatsby'
65

76
const MeetupDescription = ({ name, time, venue }) => (

0 commit comments

Comments
 (0)