Replies: 1 comment
-
Today, I tried to init the latest redux toolkit to the latest svelte kit and use the latest adapter-static, to build static site generation, then I also received an error: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an issue with static adapter to build SSG on svelte kit 1.0.0-next.507, adapter-static: 1.0.0-next.44, redux toolkit: 1.6.2.
TypeError: createEntityAdapter$1 is not a function
at file:///.../.svelte-kit/output/server/chunks/store.utils.js:76:23
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
at async Module.component (file:///.../.svelte-kit/output/server/nodes/0.js:4:39)
at async Promise.all (index 0)
at async render_response (file:///.../.svelte-kit/output/server/index.js:1218:19)
at async render_page (file:///.../.svelte-kit/output/server/index.js:1676:12)
at async resolve (file:///....svelte-kit/output/server/index.js:1981:22)
at async respond (file:///.../.svelte-kit/output/server/index.js:2019:22)
or
TypeError: createAsyncThunk is not a function
at file:///.../.svelte-kit/output/server/chunks/store.utils.js:76:23
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
at async Module.component (file:///.../.svelte-kit/output/server/nodes/0.js:4:39)
at async Promise.all (index 0)
at async render_response (file:///.../.svelte-kit/output/server/index.js:1218:19)
at async render_page (file:///.../.svelte-kit/output/server/index.js:1676:12)
at async resolve (file:///....svelte-kit/output/server/index.js:1981:22)
at async respond (file:///.../.svelte-kit/output/server/index.js:2019:22)
I tried
import * as toolkit from "@reduxjs/toolkit";
const {
createAction,
createEntityAdapter,
createReducer
} = toolkit;
import {createAction,
createEntityAdapter,
createReducer} from "@reduxjs/toolkit";
or import {createAction,
createEntityAdapter,
createReducer} from "@reduxjs/toolkit.dist/redux-toolkit.esm";
but it didn't work at all.
It is stable working on svelte kit 1.0.0-next.168 and adapter-static 21, but I want to upgrade svelte to the latest.
Is there a way to make it run normally with the new version ?
Beta Was this translation helpful? Give feedback.
All reactions