Commit 38c0fd05 authored by Sam Selikoff's avatar Sam Selikoff

Tidying

parent a325ffbe
......@@ -985,68 +985,67 @@
"984": "LRUCache: calculateSize returned %s, but size must be > 0. Items with size 0 would never be evicted, causing unbounded cache growth.",
"985": "No response is returned from route handler '%s'. Expected a Response object but received '%s' (method: %s, url: %s). Ensure you return a \\`Response\\` or a \\`NextResponse\\` in all branches of your handler.",
"986": "Server Action arguments list is too long (%s). Maximum allowed is %s.",
"987": "Invalid \\`deploymentId\\` configuration: exceeds maximum length of 32 characters. See https://nextjs.org/docs/messages/deploymentid-too-long",
"988": "Invalid \\`deploymentId\\` configuration: must be a string. See https://nextjs.org/docs/messages/deploymentid-not-a-string",
"989": "Invalid \\`deploymentId\\` configuration: contains invalid characters. Only alphanumeric characters, hyphens, and underscores are allowed. See https://nextjs.org/docs/messages/deploymentid-invalid-characters",
"990": "Page \"%s\" cannot use \\`export const unstable_staleTime = ...\\` when \\`cacheComponents\\` is enabled.",
"991": "\\`unstable_staleTime\\` is only supported in pages, but you're using it in a layout. Please remove it.",
"992": "Loaded static props were from an outdated deployment, forcing a hard reload",
"993": "Page \"%s\" cannot use \\`export const unstable_instant = ...\\` without enabling \\`cacheComponents\\`.",
"994": "A page must have a root layout",
"995": "Got unexpected empty seed data during instant validation",
"996": "createNodeStreamWithLateRelease cannot be used in the edge runtime",
"997": "InitialRSCPayload does not match the expected shape during instant validation.",
"998": "Missing segment data: %s",
"999": "Unexpected state while traversing route tree: %s",
"1000": "%s: \\`unstable_instant\\` with mode 'runtime' is not supported in root layouts.",
"1001": "The \"exportPathMap\" configuration cannot be used with the \"app\" directory. Please use generateStaticParams() instead.",
"1002": "[lightningcss-loader]: experimental.useLightningcss does not work with postcss plugins. Please remove 'useLightningcss: true' from your configuration.",
"1003": "A \"use cache\" with zero \\`revalidate\\` is nested inside another \"use cache\" that has no explicit \\`cacheLife\\`, which is not allowed during prerendering. Add \\`cacheLife()\\` to the outer \\`\"use cache\"\\` to choose whether it should be prerendered (with non-zero \\`revalidate\\`) or remain dynamic (with zero \\`revalidate\\`). Read more: https://nextjs.org/docs/messages/nested-use-cache-no-explicit-cachelife",
"1004": "\"use cache: private\" must not be used within \"use cache\". It can only be nested inside of another \"use cache: private\".",
"1005": "%s;401",
"1006": "Failed to set Next.js data cache for %s%s, items over 2MB can not be cached (%s bytes)",
"1007": "Invalid value returned from getStaticPaths in %s. Received %s Expected: { paths: [], fallback: boolean }\\nSee here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value",
"1008": "revalidate: 0 configured %s",
"1009": "Route %s used \\`import('next/root-params').%s()\\` outside of a Server Component. This is not allowed.",
"1010": "Can't resolve %s%s%s/page",
"1011": "\"use cache: private\" cannot be used outside of a request context.",
"1012": "A \"use cache\" with short \\`expire\\` (under 5 minutes) is nested inside another \"use cache\" that has no explicit \\`cacheLife\\`, which is not allowed during prerendering. Add \\`cacheLife()\\` to the outer \\`\"use cache\"\\` to choose whether it should be prerendered (with longer \\`expire\\`) or remain dynamic (with short \\`expire\\`). Read more: https://nextjs.org/docs/messages/nested-use-cache-no-explicit-cachelife",
"1013": "Conflicting app and page file%s found, please remove the conflicting files to continue:\\n",
"1014": "The Edge Function \"pagesVAR_DEFINITION_PAGE\" must export a \\`default\\` function",
"1015": "Route %s used \\`import('next/root-params').%s()\\` inside \\`\"use cache\"\\` or \\`unstable_cache\\`. Support for this API inside cache scopes is planned for a future version of Next.js.",
"1016": "Next.js can't recognize the exported \\`config\\` field in %s:\n%s%s.\nRead More - https://nextjs.org/docs/messages/invalid-page-config",
"1017": "\\`import('next/root-params').%s()\\` was used inside a Server Action. This is not supported. Functions from 'next/root-params' can only be called in the context of a route.",
"1018": "Page %s provided runtime 'edge', the edge runtime for rendering is currently experimental. Use runtime 'experimental-edge' instead.",
"1019": "\"use cache: private\" must not be used within \\`unstable_cache()\\`.",
"1020": "`headers` must not be used within a client component. Next.js should be preventing `headers` from being included in client components statically, but did not in this case.",
"1021": "webpack build failed: found page without a React Component as default export in pages/%s%s%s\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.",
"1022": "%s;403",
"1023": "\"use cache: private\" must not be used within a client component. Next.js should be preventing \"use cache: private\" from being allowed in client components statically, but did not in this case.",
"1024": "Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo.",
"1025": "invalid hex: \\`\\`",
"1026": "%s\n%s",
"1027": "%s doesn't have a root layout. ",
"1028": "\"%s.getInitialProps()\" should resolve to an object. But found \"%s\" instead.",
"1029": "Unknown \"loader\" found in \"next.config.js\". Expected: %s. Received: %sdefault",
"1030": "No router instance found. you should only use \"next/router\" inside the client side of your app. https://nextjs.org/docs/messages/no-router-instance",
"1031": "You should not access 'res' after getServerSideProps resolves.\\nRead more: https://nextjs.org/docs/messages/gssp-no-mutating-res",
"1032": "The \"target\" property is no longer supported in next.config.js.\\nSee more info here https://nextjs.org/docs/messages/deprecated-target-config",
"1033": "Duration is too long to express as float64: %s%s",
"1034": "Route segment config is not allowed in Proxy file at \"%s\". Proxy always runs on Node.js runtime. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy",
"1035": "Missing workStore in \\`import('next/root-params').%s()\\`",
"1036": "[lightningcss-loader]: options.implementation.transformCss must be an 'lightningcss' transform function. Received %s",
"1037": "The \\`fallback\\` key must be returned from getStaticPaths in %s.\\nExpected: { paths: [], fallback: boolean }\\nSee here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value",
"1038": "\"%s.getInitialProps()\" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.",
"1039": "Malformed PostCSS Configuration",
"1040": "`cookies` must not be used within a Client Component. Next.js should be preventing `cookies` from being included in Client Components statically, but did not in this case.",
"1041": "\"use cache\" must not be used within a client component. Next.js should be preventing \"use cache\" from being allowed in client components statically, but did not in this case.",
"1042": "\"%s.getInitialProps()\" should resolve to an object with a \"html\" prop set with a valid html string",
"1043": "Process image \"%s\" failed: %s",
"1044": "%s;404",
"1045": "Conflicting app and page file%s found, please remove the conflicting files to continue:",
"1046": "Route %s used \\`import('next/root-params').%s()\\` inside a Route Handler. Support for this API in Route Handlers is planned for a future version of Next.js.",
"1047": "No router instance found.\nYou should only use \"next/router\" on the client side of your app.\n",
"1048": "LRUCache: calculateSize returned %s%s, but size must be > 0. Items with size 0 would never be evicted, causing unbounded cache growth.",
"1049": "`draftMode` must not be used within a Client Component. Next.js should be preventing `draftMode` from being included in Client Components statically, but did not in this case.",
"1050": "Extra keys returned from getStaticPaths in %s (%s) Expected: { paths: [], fallback: boolean }\\nSee here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value"
"987": "Invalid \\`deploymentId\\` configuration: must be a string. See https://nextjs.org/docs/messages/deploymentid-not-a-string",
"988": "Invalid \\`deploymentId\\` configuration: contains invalid characters. Only alphanumeric characters, hyphens, and underscores are allowed. See https://nextjs.org/docs/messages/deploymentid-invalid-characters",
"989": "Loaded static props were from an outdated deployment, forcing a hard reload",
"990": "Page \"%s\" cannot use \\`export const unstable_instant = ...\\` without enabling \\`cacheComponents\\`.",
"991": "A page must have a root layout",
"992": "Got unexpected empty seed data during instant validation",
"993": "createNodeStreamWithLateRelease cannot be used in the edge runtime",
"994": "InitialRSCPayload does not match the expected shape during instant validation.",
"995": "Missing segment data: %s",
"996": "Unexpected state while traversing route tree: %s",
"997": "%s: \\`unstable_instant\\` with mode 'runtime' is not supported in root layouts.",
"998": "The \"exportPathMap\" configuration cannot be used with the \"app\" directory. Please use generateStaticParams() instead.",
"999": "[lightningcss-loader]: experimental.useLightningcss does not work with postcss plugins. Please remove 'useLightningcss: true' from your configuration.",
"1000": "A \"use cache\" with zero \\`revalidate\\` is nested inside another \"use cache\" that has no explicit \\`cacheLife\\`, which is not allowed during prerendering. Add \\`cacheLife()\\` to the outer \\`\"use cache\"\\` to choose whether it should be prerendered (with non-zero \\`revalidate\\`) or remain dynamic (with zero \\`revalidate\\`). Read more: https://nextjs.org/docs/messages/nested-use-cache-no-explicit-cachelife",
"1001": "\"use cache: private\" must not be used within \"use cache\". It can only be nested inside of another \"use cache: private\".",
"1002": "%s;401",
"1003": "Failed to set Next.js data cache for %s%s, items over 2MB can not be cached (%s bytes)",
"1004": "Invalid value returned from getStaticPaths in %s. Received %s Expected: { paths: [], fallback: boolean }\\nSee here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value",
"1005": "revalidate: 0 configured %s",
"1006": "Route %s used \\`import('next/root-params').%s()\\` outside of a Server Component. This is not allowed.",
"1007": "Can't resolve %s%s%s/page",
"1008": "\"use cache: private\" cannot be used outside of a request context.",
"1009": "A \"use cache\" with short \\`expire\\` (under 5 minutes) is nested inside another \"use cache\" that has no explicit \\`cacheLife\\`, which is not allowed during prerendering. Add \\`cacheLife()\\` to the outer \\`\"use cache\"\\` to choose whether it should be prerendered (with longer \\`expire\\`) or remain dynamic (with short \\`expire\\`). Read more: https://nextjs.org/docs/messages/nested-use-cache-no-explicit-cachelife",
"1010": "Conflicting app and page file%s found, please remove the conflicting files to continue:\\n",
"1011": "The Edge Function \"pagesVAR_DEFINITION_PAGE\" must export a \\`default\\` function",
"1012": "Route %s used \\`import('next/root-params').%s()\\` inside \\`\"use cache\"\\` or \\`unstable_cache\\`. Support for this API inside cache scopes is planned for a future version of Next.js.",
"1013": "Next.js can't recognize the exported \\`config\\` field in %s:\n%s%s.\nRead More - https://nextjs.org/docs/messages/invalid-page-config",
"1014": "\\`import('next/root-params').%s()\\` was used inside a Server Action. This is not supported. Functions from 'next/root-params' can only be called in the context of a route.",
"1015": "Page %s provided runtime 'edge', the edge runtime for rendering is currently experimental. Use runtime 'experimental-edge' instead.",
"1016": "\"use cache: private\" must not be used within \\`unstable_cache()\\`.",
"1017": "`headers` must not be used within a client component. Next.js should be preventing `headers` from being included in client components statically, but did not in this case.",
"1018": "webpack build failed: found page without a React Component as default export in pages/%s%s%s\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.",
"1019": "%s;403",
"1020": "\"use cache: private\" must not be used within a client component. Next.js should be preventing \"use cache: private\" from being allowed in client components statically, but did not in this case.",
"1021": "Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo.",
"1022": "invalid hex: \\`\\`",
"1023": "%s\n%s",
"1024": "%s doesn't have a root layout. ",
"1025": "\"%s.getInitialProps()\" should resolve to an object. But found \"%s\" instead.",
"1026": "Unknown \"loader\" found in \"next.config.js\". Expected: %s. Received: %sdefault",
"1027": "No router instance found. you should only use \"next/router\" inside the client side of your app. https://nextjs.org/docs/messages/no-router-instance",
"1028": "You should not access 'res' after getServerSideProps resolves.\\nRead more: https://nextjs.org/docs/messages/gssp-no-mutating-res",
"1029": "The \"target\" property is no longer supported in next.config.js.\\nSee more info here https://nextjs.org/docs/messages/deprecated-target-config",
"1030": "Duration is too long to express as float64: %s%s",
"1031": "Route segment config is not allowed in Proxy file at \"%s\". Proxy always runs on Node.js runtime. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy",
"1032": "Missing workStore in \\`import('next/root-params').%s()\\`",
"1033": "[lightningcss-loader]: options.implementation.transformCss must be an 'lightningcss' transform function. Received %s",
"1034": "The \\`fallback\\` key must be returned from getStaticPaths in %s.\\nExpected: { paths: [], fallback: boolean }\\nSee here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value",
"1035": "\"%s.getInitialProps()\" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.",
"1036": "Malformed PostCSS Configuration",
"1037": "`cookies` must not be used within a Client Component. Next.js should be preventing `cookies` from being included in Client Components statically, but did not in this case.",
"1038": "\"use cache\" must not be used within a client component. Next.js should be preventing \"use cache\" from being allowed in client components statically, but did not in this case.",
"1039": "\"%s.getInitialProps()\" should resolve to an object with a \"html\" prop set with a valid html string",
"1040": "Process image \"%s\" failed: %s",
"1041": "%s;404",
"1042": "Conflicting app and page file%s found, please remove the conflicting files to continue:",
"1043": "Route %s used \\`import('next/root-params').%s()\\` inside a Route Handler. Support for this API in Route Handlers is planned for a future version of Next.js.",
"1044": "No router instance found.\nYou should only use \"next/router\" on the client side of your app.\n",
"1045": "LRUCache: calculateSize returned %s%s, but size must be > 0. Items with size 0 would never be evicted, causing unbounded cache growth.",
"1046": "`draftMode` must not be used within a Client Component. Next.js should be preventing `draftMode` from being included in Client Components statically, but did not in this case.",
"1047": "Extra keys returned from getStaticPaths in %s (%s) Expected: { paths: [], fallback: boolean }\\nSee here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value",
"1048": "\\`unstable_staleTime\\` is only supported in pages, but you're using it in a layout. Please remove it.",
"1049": "Page \"%s\" cannot use \\`export const unstable_staleTime = ...\\` when \\`cacheComponents\\` is enabled."
}
......@@ -57,7 +57,6 @@ export function navigate(
const cacheKey = createCacheKey(href, nextUrl)
const route = readRouteCacheEntry(now, cacheKey)
if (route !== null && route.status === EntryStatus.Fulfilled) {
// We have a matching prefetch.
return navigateUsingPrefetchedRouteTree(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment