mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
8570d19af6
* handle errors of lifecycle methods * handle errors of render method
12 lines
204 B
JavaScript
12 lines
204 B
JavaScript
import 'react-hot-loader/patch'
|
|
import patch from './patch-react'
|
|
|
|
// apply patch first
|
|
patch((err) => {
|
|
console.error(err)
|
|
next.renderError(err)
|
|
})
|
|
|
|
const next = require('./next')
|
|
window.next = next
|