next-redux-wrapper icon indicating copy to clipboard operation
next-redux-wrapper copied to clipboard

createWrapper is undefined in store.ts

Open doksara opened this issue 2 years ago • 2 comments

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 avatar Sep 12 '22 08:09 doksara

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

doksara avatar Sep 12 '22 09:09 doksara

Please create a codesandbox.

kirill-konshin avatar Sep 12 '22 15:09 kirill-konshin