We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888a029 commit 62fcb2bCopy full SHA for 62fcb2b
client/index.js
@@ -7,6 +7,15 @@ import App from '../lib/app'
7
import evalScript from '../lib/eval-script'
8
import { loadGetInitialProps, getURL } from '../lib/utils'
9
10
+// Polyfill Promise globally
11
+// This is needed because Webpack2's dynamic loading(common chunks) code
12
+// depends on Promise.
13
+// So, we need to polyfill it.
14
+// See: https://github.com/webpack/webpack/issues/4254
15
+if (!window.Promise) {
16
+ window.Promise = Promise
17
+}
18
+
19
const {
20
__NEXT_DATA__: {
21
component,
0 commit comments