Caching revalidation question #69414
Unanswered
younes101020
asked this question in
App Router
Replies: 1 comment 2 replies
-
This error occurs after using revalidateTag() inside socketio custom server ⨯ Error: Invariant: AsyncLocalStorage accessed in runtime where it is not available
at Object.<anonymous> (/home/younes/side-projects/Electra-v2/node_modules/next/src/client/components/async-local-storage.ts:3:50)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Object.require.extensions.<computed> [as .js] (/home/younes/side-projects/Electra-v2/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.call (node:internal/modules/cjs/loader:1231:19)
at Module.mod.require (/home/younes/side-projects/Electra-v2/node_modules/next/src/server/require-hook.ts:70:26)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/home/younes/side-projects/Electra-v2/node_modules/next/dist/client/components/static-generation-async-storage-instance.js:11:28) {
page: '/movies'
} |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, is it possible to use caching apis inside nextjs custom server ? like revalidateTag or revalidatePath
Beta Was this translation helpful? Give feedback.
All reactions