The with-loading example works well client-side, but on hard refreshing the /forever or /about routes, it throws Cannot read property 'Component' of undefined. Component is being imported from React in those two pages. Full trace:
TypeError: Cannot read property 'Component' of undefined
at _callee3$ (http://localhost:3000/_next/-/main.js:11570:50)
at tryCatch (http://localhost:3000/_next/-/commons.js:12871:40)
at Generator.invoke [as _invoke] (http://localhost:3000/_next/-/commons.js:13162:22)
at Generator.prototype.(anonymous function) [as next] (http://localhost:3000/_next/-/commons.js:12923:21)
at step (http://localhost:3000/_next/-/commons.js:3111:30)
at http://localhost:3000/_next/-/commons.js:3129:14
at F (http://localhost:3000/_next/-/commons.js:1634:28)
at http://localhost:3000/_next/-/commons.js:3108:12
at doRender (http://localhost:3000/_next/-/main.js:11587:18)
at Object._callee$ (http://localhost:3000/_next/-/main.js:11489:20)
The with-loading example works well client-side, but on hard refreshing the
/foreveror/aboutroutes, it throwsCannot read property 'Component' of undefined.Componentis being imported fromReactin those two pages. Full trace: