Skip to content

Commit

Permalink
Use "experimental.cacheHandlers" in error message
Browse files Browse the repository at this point in the history
Co-authored-by: Janka Uryga <[email protected]>
  • Loading branch information
unstubbable and lubieowoce committed Nov 16, 2024
1 parent 705e400 commit 2adf9e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2938,7 +2938,7 @@ fn emit_error(error_kind: ServerActionsErrorKind) {
span,
formatdoc! {
r#"
Unknown cache kind "{cache_kind}". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config.
Unknown cache kind "{cache_kind}". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config.
"#
},
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
x Unknown cache kind "x". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config.
x Unknown cache kind "x". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config.
|
,-[input.js:1:1]
1 | 'use cache: x'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
x Unknown cache kind "x". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config.
x Unknown cache kind "x". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config.
|
,-[input.js:2:1]
1 | export async function foo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('use-cache-unknown-cache-kind', () => {
3 | export default async function Page() {
4 | return <p>hello world</p>
Unknown cache kind "custom". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config.
Unknown cache kind "custom". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config.
Expand All @@ -56,7 +56,7 @@ describe('use-cache-unknown-cache-kind', () => {
expect(buildOutput).toMatchInlineSnapshot(`
"
./app/page.tsx
Error: x Unknown cache kind "custom". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config.
Error: x Unknown cache kind "custom". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config.
|
,-[1:1]
1 | 'use cache: custom'
Expand Down Expand Up @@ -96,12 +96,12 @@ describe('use-cache-unknown-cache-kind', () => {
3 | export default async function Page() {
4 | return <p>hello world</p>
Unknown cache kind "custom". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config."
Unknown cache kind "custom". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config."
`)
} else {
expect(errorSource).toMatchInlineSnapshot(`
"./app/page.tsx
Error: x Unknown cache kind "custom". Please configure a cache handler for this kind in the experimental "cacheHandlers" object in your Next.js config.
Error: x Unknown cache kind "custom". Please configure a cache handler for this kind in the "experimental.cacheHandlers" object in your Next.js config.
|
,-[1:1]
1 | 'use cache: custom'
Expand Down

0 comments on commit 2adf9e7

Please sign in to comment.