No page context
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Current Behavior
{ Error: No page context at Function._callee$ (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next-redux-wrapper/lib/index.js:169:25) at tryCatch (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:62:40) at Generator.invoke [as _invoke] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:296:22) at Generator.prototype.(anonymous function) [as next] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/r untime.js:114:21) at step (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next-redux-wrapper/node_modules/@babel/runtime/helpers/asyncToGener ator.js:12:30) at _next (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next-redux-wrapper/node_modules/@babel/runtime/helpers/asyncToGene rator.js:27:9) at /Users/liumin/Desktop/next/with-redux-saga/node_modules/next-redux-wrapper/node_modules/@babel/runtime/helpers/asyncToGenerator.js:34:7 at new Promise (/Users/liumin/Desktop/next/with-redux-saga/node_modules/core-js/library/modules/es6.promise.js:177:7) at Function.<anonymous> (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next-redux-wrapper/node_modules/@babel/runtime/helpers/asyncToGenerator.js:7:12) at Function.value [as getInitialProps] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next-redux-wrapper/lib/index.js:211:25) at _callee$ (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next/dist/lib/utils.js:111:30) at tryCatch (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:62:40) at Generator.invoke [as _invoke] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:296:22) at Generator.prototype.(anonymous function) [as next] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:114:21) at step (/Users/liumin/Desktop/next/with-redux-saga/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30) at _next (/Users/liumin/Desktop/next/with-redux-saga/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9) sourceMapsApplied: true }
Steps to Reproduce (for bugs)
- curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-redux-saga
- cd with-redux-saga
- yarn
- yarn add next next-redux-saga next-redux-wrapper
- yarn dev
Context
Your Environment
Tech | Version |
---|---|
next | 6.0.1 |
node | v10.0.0 |
OS | macOS 10.13.4 |
browser | chrome |
etc |
package.json { “name”: “with-redux-saga”, “version”: “1.0.0”, “license”: “MIT”, “scripts”: { “dev”: “next”, “build”: “next build”, “start”: “next start” }, “dependencies”: { “es6-promise”: “4.1.1”, “isomorphic-unfetch”: “2.0.0”, “next”: “^6.0.1”, “next-redux-saga”: “^3.0.0-beta.1”, “next-redux-wrapper”: “^2.0.0-beta.6”, “react”: “^16.0.0”, “react-dom”: “^16.0.0”, “react-redux”: “5.0.5”, “redux”: “3.7.2”, “redux-saga”: “0.15.4” }, “devDependencies”: { “redux-devtools-extension”: “2.13.2” } }
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Thanks @gastonfartek 🙏 🙌
@liumin1128 This might also be helpful https://github.com/kirill-konshin/next-redux-wrapper/issues/89