diff --git a/package.json b/package.json index f3eb395..c0727a8 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "@kadira/storybook-database": "^2.0.1", "body-parser": "^1.15.2", "lodash": "^4.15.0", - "lowdb": "^0.13.1" + "lowdb": "^0.13.1", + "whatwg-fetch": "^1.0.0" }, "peerDependencies": { "express": "^4.0.0" diff --git a/src/client/bundledPersister.js b/src/client/bundledPersister.js index 4cb9df9..9c5961d 100644 --- a/src/client/bundledPersister.js +++ b/src/client/bundledPersister.js @@ -1,3 +1,4 @@ +import 'whatwg-fetch'; import lowdb from 'lowdb'; import lodash from 'lodash'; import Database from '../shared/database'; diff --git a/src/client/devServerPersister.js b/src/client/devServerPersister.js index 7c75512..acf3cd6 100644 --- a/src/client/devServerPersister.js +++ b/src/client/devServerPersister.js @@ -1,3 +1,5 @@ +import 'whatwg-fetch'; + export default class DevServerPersister { constructor({ url }) { this.url = url;