Skip to content
Advertisement

How to config appWithTranslation(nexti18next + withRedux (next-redux-wrapper) in __app.js

I’m tranfer reactjs project to nextjs with react-redux, redux, nexti18next, next-redux-wrapper here is _app.js and redux.js it run right but if i add withRedux it is error. Please tell me how to resolve this problem or advide me some solution!

JavaScript

Advertisement

Answer

Here is example of NextJS/Typescript/Redux/Styled-Components/next-i18next app sample.

JavaScript
JavaScript

and I have path alias in tsconfig

JavaScript

hope this helps somebody!

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement