getStaticProps returns empty object at prod and dev (next v9.5.1) #15975
-
Hello,
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 7 replies
-
This works once I added an ending quote to |
Beta Was this translation helpful? Give feedback.
-
I added the issue on Stackoverflow in case anybody wants to help there: |
Beta Was this translation helpful? Give feedback.
-
I went inside next-server.js file inside nextjs and logged a few values related :
|
Beta Was this translation helpful? Give feedback.
-
The problem seems to be here:
Component.getInitialProps is undefined so pageProps returns an empty object. Does this mean that getStaticProps doesn't actually pass props to getInitialProps in the custom app? |
Beta Was this translation helpful? Give feedback.
-
Both appProps and pageProps are empty:
|
Beta Was this translation helpful? Give feedback.
-
Hello @jamesmosier |
Beta Was this translation helpful? Give feedback.
-
The issue is with your |
Beta Was this translation helpful? Give feedback.
The issue is with your
_app
. Upgradingnext-redux-wrapper
to version 6 and following the with-redux-wrapper example will be helpful.