kirill-konshin / next-redux-wrapper

Redux wrapper for Next.js
MIT License
2.67k stars 265 forks source link

createWrapper is undefined in store.ts #487

Open doksara opened 2 years ago

doksara commented 2 years ago

Screenshot 2022-09-12 at 10 15 02

How is this possible? I literally just imported the function like this:

import { Context, createWrapper } from 'next-redux-wrapper'

This is my package.json "@reduxjs/toolkit": "^1.0.4", "next-redux-saga": "^4.0.1", "next-redux-wrapper": "^7.0.0", "react-redux": "^7.2.2", "react-schemaorg": "^2.0.0", "react-toastify": "^8.2.0", "react-virtualized": "^9.21.2", "redux": "^4.0.5", "redux-persist": "^6.0.0", "redux-saga": "^1.0.2",

doksara commented 2 years ago

Additional note: I just tried building my app for production and then running it and the error is gone, so this happens only in development mode which is really weird

kirill-konshin commented 2 years ago

Please create a codesandbox.