redux-in-worker icon indicating copy to clipboard operation
redux-in-worker copied to clipboard

How to work with Next JS?

Open LorhanSohaky opened this issue 3 years ago • 5 comments

Error: Cannot find module 'core-js/modules/es.object.define-property'
Require stack:
- /workspaces/project/node_modules/redux-in-worker/dist/index.js
- /workspaces/project/.next/server/pages/_app.js
- /workspaces/project/node_modules/next/dist/next-server/server/require.js
- /workspaces/project/node_modules/next/dist/next-server/server/load-components.js
- /workspaces/project/node_modules/next/dist/next-server/server/api-utils.js
- /workspaces/project/node_modules/next/dist/next-server/server/next-server.js
- /workspaces/project/node_modules/next/dist/server/next.js
- /workspaces/project/node_modules/next/dist/server/lib/start-server.js
- /workspaces/project/node_modules/next/dist/cli/next-dev.js
- /workspaces/project/node_modules/next/dist/bin/next

LorhanSohaky avatar Sep 01 '21 13:09 LorhanSohaky

Thanks for reporting. I think I should update the way to build, which may fix something. I'll work on it.

dai-shi avatar Sep 01 '21 23:09 dai-shi

Would you try the codesandbox build? https://ci.codesandbox.io/status/dai-shi/redux-in-worker/pr/23 See "Local Install Instructions"

dai-shi avatar Sep 02 '21 12:09 dai-shi

Published: https://www.npmjs.com/package/redux-in-worker/v/0.8.0

dai-shi avatar Sep 06 '21 11:09 dai-shi

@dai-shi , is it possible to use with this wrapper?

https://codesandbox.io/s/next-worker-l92x4

LorhanSohaky avatar Sep 11 '21 13:09 LorhanSohaky

hmm, I'm not familiar with the wrapper. It creates store on demand? multiple times? all I could say is give it a try...

dai-shi avatar Sep 11 '21 14:09 dai-shi