rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.91k stars 863 forks source link

'PureComponent' is not exported from 'react' #1328

Open wangfei0001 opened 2 years ago

wangfei0001 commented 2 years ago

I use redux-persist module in nextjs project, but when I compile in the docker container, always be failed in compiling. Does anyone have any ideas?


info - Creating an optimized production build Failed to compile.

./node_modules/redux-persist/es/integration/react.js Attempted import error: 'PureComponent' is not exported from 'react'.

Build error occurred Error: > Build failed because of webpack errors

ckalika commented 2 years ago

@wangfei0001 Can you send through your Dockerfile and some example code? This is hard to answer without it.