From 483a6b0cc69af6aa2b899d3930c3b3edb6172011 Mon Sep 17 00:00:00 2001 From: Jude Gao Date: Thu, 12 Dec 2024 19:08:08 -0500 Subject: [PATCH] Exclude `.test.` files from using error code plugin (#73868) I forgot to exclude `.test.` files from the next error code plugin. This caused a bunch of errors codes from test files to pollute `errors.json`. I added a filter to exclude the test files and then reset `errors.json`. --- packages/next/errors.json | 1018 ++++++++--------- packages/next/taskfile-swc.js | 4 +- test/development/error-overlay/index.test.tsx | 4 +- 3 files changed, 512 insertions(+), 514 deletions(-) diff --git a/packages/next/errors.json b/packages/next/errors.json index 020e25df0bdbf..8f2a345b0a6ac 100644 --- a/packages/next/errors.json +++ b/packages/next/errors.json @@ -14,515 +14,511 @@ "13": "`turbo.startTurbopackTraceServer` is not supported by the wasm bindings.", "14": "Invariant: null responses cannot be streamed", "15": "Error for page %s: %s", - "16": "Request failed with status %s.", - "17": "Unknown cacheLife profile \"%s\" is not configured in next.config.js\\nDid you mean \"%s\" without the spaces?", - "18": "Span has already ended", - "19": "Unexpected server data: missing bootstrap script.", - "20": "invalid response %s", - "21": "can't decode empty hex", - "22": "The provided export path '%s' doesn't match the '%s' page.\\nRead more: https://nextjs.org/docs/messages/export-path-mismatch", - "23": "Image with src \"%s\" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.", - "24": "Invalid revalidate configuration provided: %s < 1", - "25": "The \"modules.namedExport\" option requires the \"modules.exportLocalsConvention\" option to be \"camelCaseOnly\"", - "26": "Invalid flags should be run as node detached-flush dev ./path-to/project", - "27": "NodeModuleLoader is not supported in edge runtime.", - "28": "Invariant: Unexpected injection %s", - "29": "Specified images.remotePatterns should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", - "30": "You cannot have two parallel pages that resolve to the same path. Please check %s and %s. Refer to the route group docs for more information: https://nextjs.org/docs/app/building-your-application/routing/route-groups", - "31": "expected appBuildManifest with an \"app\" pageType", - "32": "invariant: unexpected cachedResponse of kind fetch in response cache", - "33": "invariant: getServerSideProps did not return valid props. Please report this.", - "34": "Invariant: Couldn't find action module ID from module map.", - "35": "Turbopack build failed with %s issues:\\n%s", - "36": "source-map information is not available at url() declaration %s", - "37": "To use middleware you must provide a `hostname` and `port` to the Next.js Server", - "38": "API route returned a Response object in the Node.js runtime, this is not supported. Please use `runtime: \"edge\"` instead: https://nextjs.org/docs/api-routes/edge-api-routes", - "39": "\\`%s\\` cannot be called inside \"use cache\". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache", - "40": "Extra keys returned from getStaticPaths in %s (%s) %s", - "41": "Specified basePath should not end with /, found \"%s\"", - "42": "Dynamic WASM code generation ('WebAssembly.instantiate' with a buffer parameter) not allowed in Edge Runtime.\nLearn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation", - "43": "Method not implemented.", - "44": "Page \"%s\" cannot use both \\`export const runtime = 'edge'\\` and export \\`generateStaticParams\\`.", - "45": "Specified pageExtensions is an empty array. Please update it with the relevant extensions or remove it.", - "46": "Using client components is not allowed in this environment.", - "47": "The default export is not a React Component in \"%s/%s\"", - "48": "It's currently unsupported to use \"export *\" in a client boundary. Please use named exports instead.", - "49": "Module `sharp` not found. Please run `npm install --cpu=wasm32 sharp` to install it.", - "50": "An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received %s", - "51": "invariant: progress total can not be zero", - "52": "`after()`: Argument must be a promise or a function", - "53": "Invalid \"devIndicator.buildActivityPosition\" provided, expected one of %s, received %s", - "54": "Method not implemented", - "55": "Module \"%s\" does not export a routeModule.", - "56": "Invariant: PPR cannot be enabled in export mode", - "57": "invariant: failed to render error page", - "58": "invariant expected layout router to be mounted", - "59": "Invariant revalidate: 0 can not be passed to unstable_cache(), must be \"false\" or \"> 0\" %s", - "60": "Middleware is not supported in minimal mode. Please remove the `NEXT_MINIMAL` environment variable.", - "61": "Unexpected action %s", - "62": "missing required error components", - "63": "URL is malformed \"%s\". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls", - "64": "invariant: cache entry required but not generated", - "65": "Failed to parse src \"%s\" on \\`next/image\\`, if using relative image it must start with a leading slash \"/\" or be an absolute URL (http:// or https://)", - "66": "Unexpected route kind %s", - "67": "Missing encryption key for Server Action. This is a bug in Next.js", - "68": "Image with src \"%s\" has invalid \"width\" property. Expected a numeric value in pixels but received \"%s\".", - "69": " should not be imported outside of pages/_document.\\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page", - "70": "Specified assetPrefix is not a string, found type \"%s\" https://nextjs.org/docs/messages/invalid-assetprefix", - "71": "\\`%s\\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", - "72": "webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias", - "73": "Specified i18n.locales contains invalid values (%s), locales must be valid locale tags provided as strings e.g. \"en-US\".\\nSee here for list of valid language sub-tags: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry", - "74": "assetPrefix must start with a leading slash or be an absolute URL(http:// or https://)", - "75": "Image with src \"%s\" has both \"fill\" and \"style.width\" properties. Images with \"fill\" always use width 100% - it cannot be modified.", - "76": "Failed to load script: %s", - "77": "The server has not been instantiated properly. https://nextjs.org/docs/messages/invalid-server-options", - "78": "expected \"app\" manifest data with an \"app\" pageType", - "79": "Invalid %s header", - "80": "Failed to load the `babel-plugin-react-compiler`. It is required to use the React Compiler. Please install it.", - "81": "Node.js binary module ./%s is not supported in the browser. Please only use the module on server side", - "82": "Invalid Server Actions request.", - "83": "Invariant: dynamic responses cannot be unchunked. This is a bug in Next.js", - "84": "Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script", - "85": "Invalid \\`paths\\` value returned from getStaticPaths in %s.\\n\\`paths\\` must be an array of strings or objects of shape { params: [key: string]: string }", - "86": "Invariant: Expected to inject all injections, found %s", - "87": "Invariant: Unexpected optional import %s", - "88": "Failed to set Next.js data cache, items over 2MB can not be cached (%s bytes)", - "89": "Page \"%s\" is missing \"generateStaticParams()\" so it cannot be used with \"output: export\" config.", - "90": "Route %s used \"cookies\" inside \"after(...)\". This is not supported. If you need this data inside an \"after\" callback, use \"cookies\" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after", - "91": "Image with src \"%s\" has \"placeholder='blur'\" property but is missing the \"blurDataURL\" property.\n Possible solutions:\n - Add a \"blurDataURL\" property, the contents should be a small Data URL to represent the image\n - Change the \"src\" property to a static import with one of the supported file types: %s (animated images not supported)\n - Remove the \"placeholder\" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url", - "92": "Failed to initialize render server", - "93": "`after()` will not work correctly, because `waitUntil` is not available in the current environment.", - "94": "An error occurred while loading the instrumentation hook", - "95": "Invariant: previewProps missing previewModeId this should never happen", - "96": "cacheLife() can only be called during App Router rendering at the moment.", - "97": "Specified basePath /. basePath has to be either an empty string or a path prefix\"", - "98": "Image with src \"%s\" has both \"width\" and \"fill\" properties. Only one should be used.", - "99": "A Node.js API is used (%s) which is not supported in the Edge Runtime.\nLearn more: https://nextjs.org/docs/api-reference/edge-runtime", - "100": "An undefined error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined", - "101": "Image with src \"%s\" has invalid \"width\" or \"height\" property. These should be numeric values.", - "102": "Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit", - "103": "The \"parallelServerBuildTraces\" and \"parallelServerCompiles\" options may only be used when build workers can be used. Read more: https://nextjs.org/docs/messages/parallel-build-without-worker", - "104": "If providing both the stale and expire options, the expire option must be greater than the stale option.The expire option indicates how many seconds from the start until it can no longer be used.", - "105": "The \"modules.namedExport\" option requires the \"esModules\" option to be enabled", - "106": "Pass `Infinity` instead of `false` if you do not want to revalidate by time.", - "107": "Specified basePath has to start with a /, found \"%s\"", - "108": "Cannot tee a ReactServerResult that has already been consumed", - "109": "Failed to create a proxy server", - "110": "Specified pageExtensions is not an array of strings, found \"%s\" of type \"%s\". Please update this config or remove it.", - "111": "request failed with status %s", - "112": "Invalid cacheLife() option. Either pass a profile name or object.", - "113": "Route %s used \"connection\" inside \"use cache\". The \\`connection()\\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", - "114": "Invariant: unexpected marker", - "115": "Unknown source map type for %s: %s.", - "116": "Invariant: Unknown request type.", - "117": "Image with src \"%s\" has both \"height\" and \"fill\" properties. Only one should be used.", - "118": "Invariant cant propagate server field, no app initialized", - "119": "The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.", - "120": "Specified images.localPatterns should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", - "121": "request.headers must be an instance of Headers", - "122": "The Middleware \"%s\" must export a \\`middleware\\` or a \\`default\\` function", - "123": "The /404 page can not return notFound in \"getStaticProps\", please remove it to continue!", - "124": "next build doesn't support turbopack yet", - "125": "Invariant: url can not be undefined", - "126": "Failed to load static props", - "127": "\\`pages%s\\` %s", - "128": "Route %s used %s without first calling \\`await connection()\\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers", - "129": "Route %s used \"headers\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"headers\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", - "130": "Using a self signed certificate is only supported with `next dev`.", - "131": "invariant: getStaticProps did not return valid props. Please report this.", - "132": "Invariant: App Route Route Modules cannot be used in the edge runtime", - "133": "Certificate files not found", - "134": "Page changed from static to dynamic at runtime %s%s\\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error", - "135": "Route %s used \"%s\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"%s\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", - "136": "\\`pages/404\\` %s", - "137": "%s be used within %s.", - "138": "Expected webpack publicPath to be a string when using App Router. To customize where static assets are loaded from, use the `assetPrefix` option in next.config.js. If you are customizing your webpack config please make sure you are not modifying or removing the publicPath configuration option", - "139": "Unknown cacheLife profile \"%s\" is not configured in next.config.js\\nmodule.exports = {\n experimental: {\n cacheLife: {\n \"%s\": ...\\n }\n }\n}", - "140": "Unknown StyledString type", - "141": "Can't resolve main package.json file", - "142": "Specified pageExtensions is not an array of strings, found \"%s\". Please update this config or remove it.", - "143": "Unsupported platform: %s", - "144": "The router state header was too large.", - "145": "request failed with empty body", - "146": "> Couldn't find any `pages` or `app` directory. Please create one under the project root", - "147": "Proxy request aborted [%s %s]", - "148": "Proxy request failed: %s", - "149": "Detected a three-dot character ('…') at ('%s'). Did you mean ('...')?", - "150": "Specified i18n should be an object received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "151": "Dynamic Code Evaluation (e. g. 'eval', 'new Function') not allowed in Edge Runtime\nLearn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation", - "152": "Invariant: Expected to inject all imports, missing %s in template", - "153": "Invariant: static responses cannot be streamed", - "154": "Cannot parse form action \"%s\" as a URL", - "155": "Invalid urlPath provided to revalidate(), must be a path e.g. /blog/post-1, received %s", - "156": "Invariant: basePath must be set and cannot be \"/\"", - "157": "unrecognized HMR message \"%s\"", - "158": "Invariant: page postponed without PPR being enabled", - "159": "Route %s used \"cookies\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"cookies\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", - "160": "Unexpected middleware effect on /404", - "161": "invariant: invalid relative URL, router received %s", - "162": "invariant image optimizer cache was not initialized", - "163": "A page's revalidate option must be seconds expressed as a natural number. Mixed numbers and strings cannot be used. Received '%s' for %s", - "164": "The Edge Function \"pages%s\" must export a \\`default\\` function", - "165": "images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config", - "166": "webpack build failed: found page without a React Component as default export in pages/%s\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.", - "167": "Invariant: unexpected cachedResponse of kind fetch in response cache", - "168": "%s from Minifier\\n%s", - "169": "An unexpected Turbopack error occurred. Please see the output of `next dev` for more details.", - "170": "Invalid escape character at the end.", - "171": "invariant: invalid previewModeId", - "172": "The key \"%s\" under \"env\" in %s is not allowed. https://nextjs.org/docs/messages/env-key-not-allowed", - "173": "Specified images should be an object received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", - "174": "Failed to fetch registry info for %s, got status %s", - "175": "The packages specified in the 'transpilePackages' conflict with the 'serverExternalPackages': %s", - "176": "Invariant: required internal revalidate method not passed to api-utils", - "177": "Invalid response %s", - "178": "Image with src \"%s\" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.", - "179": "cacheTag() can only be called inside a \"use cache\" function.", - "180": "Route %s used \"%s\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"%s\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", - "181": "Invalid revalidate value \"%s\" on \"%s\", must be a non-negative number or false", - "182": "invalid cache value", - "183": "failed to pipe response", - "184": "Route %s used \"%s\" inside a \"use cache\" which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering", - "185": "Invalid URL", - "186": "ImageResponse moved from \"next/server\" to \"next/og\" since Next.js 14, please import from \"next/og\" instead", - "187": "Dynamic WASM code generation (e. g. 'WebAssembly.compile') not allowed in Edge Runtime.\nLearn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation", - "188": "Invalid redirect object returned from %s for %s\\n%s\nSee more info here: https://nextjs.org/docs/messages/invalid-redirect-gssp", - "189": "Route %s used \"connection\" inside \"after(...)\". The \\`connection()\\` function is used to indicate the subsequent code must only run when there is an actual Request, but \"after(...)\" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after", - "190": "getStaticPaths is only allowed for dynamic SSG pages and was found on '%s'.\\nRead more: https://nextjs.org/docs/messages/non-dynamic-getstaticpaths-usage", - "191": "Next Image Optimization requires %s to be provided. Make sure you pass them as props to the \\`next/image\\` component. Received: %s", - "192": "Failed to load stylesheet: %s", - "193": "Invariant: expected filename to exist in cache", - "194": "Invalid Server Action payload: failed to decrypt.", - "195": "notFound() is not allowed to use in root layout", - "196": "Invariant: %s", - "197": "Invariant: failed to get page data for %s", - "198": "The experimental.allowDevelopmentBuild option requires NODE_ENV to be explicitly set to 'development'.", - "199": "Invariant: Expected to replace all template variables, missing %s in template", - "200": "Invalid \"experimental.cacheHandlers\" provided, expected an object e.g. { default: '/my-handler.js' }, received %s", - "201": "missing mkcert binary", - "202": "Failed to parse source map URL for %s.", - "203": "Invariant: buildID is required", - "204": "ISR cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", - "205": "> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable", - "206": "Configuring Next.js via '%s' is not supported. Please replace the file with 'next.config.js', 'next.config.mjs', or 'next.config.ts'.", - "207": "Expected config.httpAgentOptions to be an object", - "208": "Expected incremental cache to exist. This is a bug in Next.js", - "209": "Specified distDir is not a string, found type \"%s\"", - "210": "Invalid interception route: %s. Cannot use (..) marker at the root level, use (.) instead.", - "211": "Unterminated string", - "212": "Invalid with child. Please remove or use .\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor", - "213": "getStaticPaths with \"fallback: true\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", - "214": "Invariant: should handle all automatic implementable methods, got method: %s", - "215": "A conflicting public file and page file was found for path %s https://nextjs.org/docs/messages/conflicting-public-file-page", - "216": "parseBody is not implemented in the web runtime", - "217": "Invariant: Expected relative import to start with \"next/\", found \"%s\"", - "218": "Unable to find uri in \"%s\"", - "219": "Image with src \"%s\" has both \"fill\" and \"style.position\" properties. Images with \"fill\" always use position absolute - it cannot be modified.", - "220": "Invalid handler fields configured for \"experimental.cacheHandler\":\\n%s", - "221": "Image with src \"%s\" has both \"priority\" and \"loading='lazy'\" properties. Only one should be used.", - "222": "PrefixPathnameNormalizer: prefix \"%s\" should not end with a slash", - "223": "Failed to parse source map %s.", - "224": "The 'public' directory is reserved in Next.js and can not be set as the 'distDir'. https://nextjs.org/docs/messages/can-not-output-to-public", - "225": "Failed to initialize render server \"middleware\"", - "226": "%sused %s. \\`cookies()\\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", - "227": "Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js", - "228": "Unexpected middleware effect on %s", - "229": "Invariant: Missing `host` header from a forwarded Server Actions request.", - "230": "Specified i18n.locales should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "231": "Specified images.loader property (%s) also requires images.path property to be assigned to a URL prefix.\\nSee more info here: https://nextjs.org/docs/api-reference/next/legacy/image#loader-configuration", - "232": "Cannot close a CloseController multiple times", - "233": "'router' and 'Component' can not be returned in getInitialProps from _app.js https://nextjs.org/docs/messages/cant-override-next-props", - "234": "Invalid src prop (%s) on \\`next/image\\`, hostname \"%s\" is not configured under images in your \\`next.config.js\\`\\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host", - "235": "Failed to parse \"%s\":\\n%s", - "236": "The revalidate option must be a number of seconds.", - "237": "Cannot prefetch '%s' because it cannot be converted to a URL.", - "238": "Invariant: expected routes to have been loaded before match", - "239": "Filling a cache during prerender timed out, likely because request-specific arguments such as params, searchParams, cookies() or dynamic data were used inside \"use cache\".", - "240": "Invalid OpenGraph type: %s", - "241": "invariant expected app router to be mounted", - "242": "Invariant: page wasn't built", - "243": "Failed to revalidate %s: %s", - "244": "Invalid value returned from getStaticPaths in %s. Received %s %s", - "245": "Invariant: expected compilation to finish before new matchers were added, possible missing await", - "246": "The \\`fallback\\` key must be returned from getStaticPaths in %s.\\n%s", - "247": "invalid hex: \\`%s%s\\`", - "248": "Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.", - "249": "Route %s used \"%s\" inside \"use cache\". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", - "250": "You cannot have the same slug name \"%s\" repeat within a single dynamic path", - "251": "Unknown cache handler: %s", - "252": "%sused %s. \\`searchParams\\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", - "253": "cacheLife() can only be called inside a \"use cache\" function.", - "254": "\\`%s\\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context", - "255": "Image with src \"%s\" is missing \"loader\" prop.\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader", - "256": "Expected to use %s bindings (%s) for React but the current process is referencing '%s' from the %s bindings (%s). This is likely a bug in our integration of the Next.js server runtime.", - "257": "Invalid fallback mode: %s", - "258": "getStaticPaths is required for dynamic SSG pages and is missing for '%s'.\\nRead more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value", - "259": "Can't use lazyRenderAppPage in minimal mode", - "260": "Invariant: invalid matchers for middleware %s", - "261": "Invariant: response is null. This is a bug in Next.js", - "262": "Route %s used \"%s\" inside a function cached with \"unstable_cache(...)\". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", - "263": "Not a redirect error", - "264": "Route %s used %s without first calling \\`await connection()\\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-request", - "265": "%s %s", - "266": "Invariant: static generation store missing in %s", - "267": "Failed to find Server Action \"%s\". This request might be from an older or newer deployment. %s", - "268": "Farm is ended, no more calls can be done to it", - "269": "Multiple children were passed to with \\`href\\` of \\`%s\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children%s", - "270": "Dynamic href \\`%s\\` found in while using the \\`/app\\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href", - "271": "Failed to prefetch: %s", - "272": "Invalid interception route: %s. Must be in the format //(..|...|..)(..)/", - "273": "Conflicting public and page file%s found. https://nextjs.org/docs/messages/conflicting-public-file-page\\n%s", - "274": "Invariant: expected to find identity in indexes map", - "275": "Can't use lazyRenderPagesPage in minimal mode", - "276": "Failed to load client build manifest", - "277": "Invariant: null responses cannot be unchunked", - "278": "Turbopack did not return any entrypoints", - "279": "invariant: runMiddleware should not be called in minimal mode", - "280": "%sused %s. \\`headers()\\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", - "281": "export const dynamic = \"force-dynamic\" on page \"%s\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", - "282": "\"use cache\" cannot be used outside of App Router. Expected a WorkStore.", - "283": "Segment \"%s\" exports \"dynamicParams: false\" but the param \"%s\" is missing from the generated route params.", - "284": "Invariant: could not resolve page path for %s at %s", - "285": "Invariant: attempted to hard navigate to the same URL %s %s", - "286": "Attempted to handle request too many times %s", - "287": "unstable_redirect has been renamed to redirect, please update the field to continue. Page: %s", - "288": "Invalid fallback option: %s. Fallback option must be a string, null, undefined, or false.", - "289": "The default export is not a React Component in page: \"%s\"", - "290": "Invariant request handler was not setup", - "291": "Segment names may not start with erroneous periods ('%s').", - "292": "Unexpected error: extracting params from path failed but the regular expression matched", - "293": "Invariant upgrade handler was not setup", - "294": "Invariant: ensurePage can only be called on the development server", - "295": "transformSync doesn't implement reading the file from filesystem", - "296": "invalid hex: \\`%s\\`", - "297": "cacheLifeProfiles should always be provided. This is a bug in Next.js.", - "298": "Unknown action", - "299": "Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js", - "300": "Webpack config is undefined. You may have forgot to return properly from within the \"webpack\" method of your %s.\\nSee more info here https://nextjs.org/docs/messages/undefined-webpack-config", - "301": "A required parameter (%s) was not provided as %s received %s in %s for %s", - "302": "You cannot use both an required and optional catch-all route at the same level (\"[...%s]\" and \"%s\" ).", - "303": "You cannot use both an optional and required catch-all route at the same level (\"[[...%s]]\" and \"%s\").", - "304": "export const dynamic = \"force-static\"/export const revalidate not configured on route \"%s\" with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", - "305": "Expected span to be ended", - "306": "Route name should start with a \"/\", got \"%s\"", - "307": "Route %s used \"headers\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"headers\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", - "308": "Invariant: expected a page response, got %s", - "309": "Route %s used \"%s\" inside a function cached with \"unstable_cache(...)\" which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering", - "310": "%sused %s. \\`params\\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", - "311": "The stale option must be a number of seconds.", - "312": "Build failed because of webpack errors", - "313": "ESM packages (%s) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals", - "314": "A page's revalidate option can not be less than or equal to zero for %s. A revalidate option of zero means to revalidate after _every_ request, and implies stale data cannot be tolerated.\\n\\nTo never revalidate, you can set revalidate to \\`false\\` (only ran once at build-time).\\nTo revalidate as soon as possible, you can set the value to \\`1\\`.", - "315": "Component rendered inside next/link has to pass click event to \"onClick\" prop.", - "316": "predicate must return an absolute path or the result of calling next()", - "317": "Invariant: invalid postponed state %s", - "318": "Route Cancelled", - "319": "unknown route type %s for %s", - "320": "Invariant missing routerServerHandler", - "321": "Failed to parse source map for %s.", - "322": "Failed prop type: The prop \\`%s\\` expects a %s in \\`\\`, but got \\`%s\\` instead.%s", - "323": "No children were passed to with \\`href\\` of \\`%s\\` but one child is required https://nextjs.org/docs/messages/link-no-children", - "324": "failed to write chunk to response", - "325": "Additional keys were returned from \\`getStaticPaths\\` in page \"%s\". URL Parameters intended for this dynamic route must be nested under the \\`params\\` key, i.e.:\\n\\n\\treturn { params: { %s } }\\n\\nKeys that need to be moved: %s.\\n", - "326": "Your custom PostCSS configuration may not export a function. Please export a plain object instead.\\nRead more: https://nextjs.org/docs/messages/postcss-function", - "327": "`css.lightning.transformStyleAttr` is not supported by the wasm bindings.", - "328": "No response is returned from route handler '%s'. Ensure you return a \\`Response\\` or a \\`NextResponse\\` in all branches of your handler.", - "329": "Specified basePath is not a string, found type \"%s\"", - "330": "invalid address from server: %s", - "331": "Manifest file is empty", - "332": "To use a multi-match in the destination you must add \\`*\\` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match", - "333": "`css.lightning.transform` is not supported by the wasm bindings.", - "334": "%s from Minifier\\n%s\\n%s", - "335": "Edge function did not return a response", - "336": "Invariant: missing request body.", - "337": "invariant: invalid previewModeEncryptionKey", - "338": "type system invariant violation", - "339": "A null error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined", - "340": "You cannot use different slug names for the same dynamic path ('%s' !== '%s').", - "341": "Unknown \"loader\" found in \"next.config.js\". Expected: %s. Received: %s", - "342": "%s%s", - "343": "No directory access", - "344": "It looks like you didn't end your @import statement correctly. Child nodes are attached to it.", - "345": "Failed to write turborepo access trace file", - "346": "Invalid assetPrefix provided. Original error: %s", - "347": "%sRead more: https://nextjs.org/docs/messages/%s", - "348": "Invariant: Unsupported NextRequest type", - "349": "invariant revalidate must be a number for image-cache", - "350": "Your custom PostCSS configuration must export a \\`plugins\\` key.", - "351": "Route %s used \"%s\" inside \\`after\\`. The enabled status of draftMode can be read inside \\`after\\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after", - "352": "could not get asset: %s", - "353": "No default cacheLife profile.", - "354": "%s from Minifier\\n%s [%s:%s,%s]%s", - "355": "A \"use server\" file can only export async functions, found %s.\\nRead more: https://nextjs.org/docs/messages/invalid-use-server-value", - "356": "Page \"%s\" is missing exported function \"generateStaticParams()\", which is required with \"output: export\" config.", - "357": "Taint can only be used with the taint flag.", - "358": "prepare() must be called before performing this operation", - "359": "getStaticPaths can only be used with dynamic pages, not '%s'.\\nLearn more: https://nextjs.org/docs/routing/dynamic-routes", - "360": "Image with src \"%s\" has invalid \"loading\" property. Provided \"%s\" should be one of %s.", - "361": "Invalid locale returned from getStaticPaths for %s, the locale %s is not specified in %s", - "362": "Invariant: server actions can't be handled during static rendering", - "363": "Failed to parse src \"%s\" on \\`next/image\\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)", - "364": "failed to resolve %s from %s", - "365": "Route %s errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.\n \nOriginal Error: %s", - "366": "Invariant: Expected to replace at least one import", - "367": "invariant: Missing request body.", - "368": "Cannot subscribe to a closed CloseController", - "369": "invariant attempted to set non-image to image-cache", - "370": "Route %s used \"headers\" inside \"after(...)\". This is not supported. If you need this data inside an \"after\" callback, use \"headers\" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after", - "371": "Invariant might be excluded but missing source", - "372": "getServerSideProps cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", - "373": "No Stats from webpack", - "374": "Image with src \"%s\" has \"placeholder='blur'\" property but is missing the \"blurDataURL\" property.\n Possible solutions:\n - Add a \"blurDataURL\" property, the contents should be a small Data URL to represent the image\n - Change the \"src\" property to a static import with one of the supported file types: %s (animated images not supported)\n - Remove the \"placeholder\" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url", - "375": "Invariant: Expected postponed to be undefined", - "376": "mis-matched route type: isApp && page for %s", - "377": "NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.", - "378": "\"next start\" does not work with \"output: export\" configuration. Use \"npx serve@latest out\" instead.", - "379": "Copy to clipboard is not supported in this browser", - "380": "%sused %s. \\`draftMode()\\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", - "381": "Unknown dynamic param type", - "382": "Page %s does not export a default function.", - "383": "Invalid href: \"%s\" and as: \"%s\", received relative href and external as\\nSee more info: https://nextjs.org/docs/messages/invalid-relative-url-external-as", - "384": "Static generation failed due to dynamic usage on %s, reason: %s", - "385": "Invariant: Expected to inject all injections, missing %s in template", - "386": "Invariant: expected this to reference a module", - "387": "Invariant: Expected to inject all imports, found %s", - "388": "NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler", - "389": "`getInitialProps` in Document component is not supported with the Edge Runtime.", - "390": "transformSync doesn't implement taking the source code as Buffer", - "391": "Page with dynamic = \"error\" encountered dynamic data method on %s.", - "392": "Invalid redirect arguments. Please use a single argument URL, e.g. res.redirect('/destination') or use a status code and URL, e.g. res.redirect(307, '/destination').", - "393": "invariant SSG should not return an image cache value", - "394": "Invalid distDir provided, distDir can not be an empty string. Please remove this config or set it to undefined", - "395": "Catch-all must be the last part of the URL.", - "396": "\"dynamicParams: true\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/app/building-your-application/deploying/static-exports", - "397": "%s", - "398": "cacheLife() is only available with the experimental.dynamicIO config.", - "399": "Invariant: postponed state should not be present on a resume request", - "400": "Image with src \"%s\" is missing required \"height\" property.", - "401": "Route %s used \"cookies\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"cookies\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", - "402": "Invariant: Unexpected redirect url format", - "403": "invariant", - "404": "\\`%s\\` cannot be called inside a prerender. This is a bug in Next.js.", - "405": "Specified images.domains should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", - "406": "`turbo.createProject` is not supported by the wasm bindings.", - "407": "Image with src \"%s\" has both \"fill\" and \"style.height\" properties. Images with \"fill\" always use height 100% - it cannot be modified.", - "408": "Loading initial props cancelled", - "409": "Route %s used %s without first calling \\`await connection()\\`.", - "410": "Pass `Infinity` instead of `false` if you want to cache on the client forever without checking with the server.", - "411": "pathname is undefined", - "412": "Invariant: pathname is undefined", - "413": "Pattern should define hostname but found\\n%s", - "414": "\\`unauthorized()\\` is experimental and only allowed to be used when \\`experimental.authInterrupts\\` is enabled.", - "415": "Invariant: pathname can't be empty", - "416": "Invalid i18n.domains values:\\n%s\\n\\ndomains value must follow format { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] }.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "417": "Failed to collect page data for %s", - "418": "Invariant: Expected to replace all template variables, found %s", - "419": "Invariant: Missing 'next-action' header.", - "420": "page %s %s %s", - "421": "Multiple router state headers were sent. This is not allowed.", - "422": "Ensure bailed, found path \"%s\" does not match ensure type (%s)", - "423": "Image with src \"%s\" has invalid \"layout\" property. Provided \"%s\" should be one of %s.", - "424": "Segment names may not start or end with extra brackets ('%s').", - "425": "Invariant: expected a page to be provided when fallback mode is \"%s\"", - "426": "Failed to fetch _devPagesManifest.json. Is something blocking that network request?\\nRead more: https://nextjs.org/docs/messages/failed-to-fetch-devpagesmanifest", - "427": "Failed to load bindings", - "428": "Turbopack build failed with %s errors:\\n%s", - "429": "Invalid src prop (%s) on \\`next/image\\` does not match \\`images.localPatterns\\` configured in your \\`next.config.js\\`\\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns", - "430": "Could not find a production build in the '%s' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id", - "431": "Font loaders must return one or more @font-face's", - "432": "Expected source to have been transformed to a string.", - "433": "The \\`compiler.define\\` option is configured to replace the \\`%s\\` variable. This variable is either part of a Next.js built-in or is already configured via the \\`env\\` option.", - "434": "Image with src \"%s\" has invalid \"placeholder\" property \"%s\".", - "435": "Specified i18n.locales must be an array of locale strings e.g. [\"en-US\", \"nl-NL\"] received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "436": "invalid response from cache %s", - "437": "This loader is only usable as a module", - "438": "Failed to collect configuration for %s", - "439": "Optional route parameters are not yet supported (\"%s\").", - "440": "invariant: invalid previewModeSigningKey", - "441": "Invariant: chainStreams requires at least one stream", - "442": "A page's revalidate option must be seconds expressed as a natural number for %s. Mixed numbers, such as '%s', cannot be used.\\nTry changing the value to '%s' or using \\`Math.ceil()\\` if you're computing the value.", - "443": "Specified i18n.localeDetection should be undefined or a boolean received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "444": "Nonce value from Content-Security-Policy contained HTML escape characters.\nLearn more: https://nextjs.org/docs/messages/nonce-contained-invalid-characters", - "445": "Specified i18n.defaultLocale should be a string.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "446": "Invalid source: %s", - "447": "Page \"%s\" is missing param \"%s\" in \"generateStaticParams()\", which is required with \"output: export\" config.", - "448": "Image with src \"%s\" has invalid \"height\" property. Expected a numeric value in pixels but received \"%s\".", - "449": "Invariant: Unexpected route kind %s in file system cache.", - "450": "Failed to lookup route: %s", - "451": "getStaticPaths was added without a getStaticProps in %s. Without getStaticProps, getStaticPaths does nothing", - "452": "cache: 'force-cache' used on fetch for %s with 'export const fetchCache = 'only-no-store'", - "453": "Specified images.loader property (%s) cannot be used with images.loaderFile property. Please set images.loader to \"custom\".", - "454": "Invariant: Unknown route module type", - "455": "Image with src \"%s\" is missing required \"width\" property.", - "456": "invariant: attempted to buildStaticPaths without \"staticPathsResult\" or \"getStaticPaths\" %s", - "457": "Invariant: Unexpected route kind", - "458": "\\`redirect\\` and \\`notFound\\` can not both be returned from %s at the same time. Page: %s\\nSee more info here: https://nextjs.org/docs/messages/gssp-mixed-not-found-redirect", - "459": "generateBuildId did not return a string. https://nextjs.org/docs/messages/generatebuildid-not-a-string", - "460": "Specified i18n.domains must be an array of domain objects e.g. [ { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] } ] received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "461": "INVALID_DEFAULT_EXPORT", - "462": "You cannot define a route with the same specificity as a optional catch-all route (\"%s\" and \"%s[[...%s]]\").", - "463": "Invariant: missing bootstrap script. This is a bug in Next.js", - "464": "An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received %s", - "465": "Specified images.loaderFile does not exist at \"%s\".", - "466": "The `size` option must be one of 32, 64, 128, 256, 512, or 1024", - "467": "Invariant: expected a result to be returned", - "468": "The default export is not a React Component in page: \"/_app\"", - "469": "Preview data is limited to 2KB currently, reduce how much data you are storing as preview data to continue", - "470": "Failed to read file contents of %s.", - "471": "Invariant: NodeNextRequest.stream() can only be called once", - "472": "`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context", - "473": "Invariant: incrementalCache missing in unstable_cache %s", - "474": "Cannot consume a ReactServerResult that has already been consumed", - "475": "Specified i18n.locales contains the following duplicate locales:\\n%s\\nEach locale should be listed only once.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "476": "Invariant: renderHTML should not be called in minimal mode", - "477": "invariant global layout router not mounted", - "478": "Build optimization failed: found page%s without a React Component as default export in \\n%s\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.\\n", - "479": "Page \"%s\" cannot use both \"use client\" and export function \"generateStaticParams()\".", - "480": "The \"icss\" option is deprecated, use \"modules.compileType: \"icss\"\" instead", - "481": "The Next.js Babel loader does not support .mjs or .cjs config files.", - "482": "The \"target\" property is no longer supported in %s.\\nSee more info here https://nextjs.org/docs/messages/deprecated-target-config", - "483": "Unexpected file path kind: %s", - "484": "Next.js requires react >= 18.2.0 to be installed.", - "485": "The provided path \\`%s\\` does not match the page: \\`%s\\`.", - "486": "%sused %s. \\`params\\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin property names: %s. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", - "487": "Abort fetching component for route: \"%s\"", - "488": "During prerendering, %s rejects when the prerender is complete. Typically these errors are handled by React but if you move %s to a different context by using \\`setTimeout\\`, \\`after\\`, or similar functions you may observe this error and you should handle it in that context.", - "489": "hmrRefresh can only be used in development mode. Please use refresh instead.", - "490": "Invalid interception route: %s. Cannot use (..)(..) marker at the root level or one level up.", - "491": "Encountered unknown module type: %s. Please open an issue.", - "492": "\\`forbidden()\\` is experimental and only allowed to be enabled when \\`experimental.authInterrupts\\` is enabled.", - "493": "expected string|object", - "494": "Circular structure in \"getInitialProps\" result of page \"%s\". https://nextjs.org/docs/messages/circular-structure", - "495": "loader %s for match \"%s\" does not have serializable options. Ensure that options passed are plain JavaScript objects and values.", - "496": "unrecognized Turbopack HMR message \"%s\"", - "497": "Specified \"i18n\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/messages/export-no-i18n", - "498": "If providing both the revalidate and expire options, the expire option must be greater than the revalidate option.The expire option indicates how many seconds from the start until it can no longer be used.", - "499": "Image with src \"%s\" must use \"width\" and \"height\" properties or \"layout='fill'\" property.", - "500": "Invariant attempted to optimize _next/image itself", - "501": "\\`redirect\\` can not be returned from getStaticProps during prerendering (%s)\\nSee more info here: https://nextjs.org/docs/messages/gsp-redirect-during-prerender", - "502": "Invalid compiler type", - "503": "You cannot have the slug names \"%s\" and \"%s\" differ only by non-word symbols within a single dynamic path", - "504": "Image Optimization using the default loader is not compatible with \\`{ output: 'export' }\\`.\n Possible solutions:\n - Remove \\`{ output: 'export' }\\` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure \\`{ images: { unoptimized: true } }\\` in \\`next.config.js\\` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api", - "505": "invariant image should not be incremental-cache", - "506": "Edge runtime is not supported with `generateStaticParams`.", - "507": "Cancel rendering route", - "508": "Invariant: AsyncLocalStorage accessed in runtime where it is not available", - "509": "\\nError: you provided query values for %s which is an auto-exported page. These can not be applied since the page can no longer be re-rendered on the server. To disable auto-export for this page add \\`getInitialProps\\`\\n", - "510": "invariant: imageOptimizer should not be called in minimal mode", - "511": "Invariant: missing action dispatcher.", - "512": "Failed to get registry from \"%s\".", - "513": "NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted", - "514": "Invariant: No locales provided", - "515": "The default export is not a React Component in page: \"/_document\"", - "516": "module not found", - "517": "Duration is too long to express as float64: %s", - "518": "cacheTag() is only available with the experimental.dynamicIO config.", - "519": "Specified i18n.defaultLocale should be included in i18n.locales.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", - "520": "unstable_notFound has been renamed to notFound, please update the field to continue. Page: %s", - "521": "Invariant: The detected locale does not match the locale in the query. Expected to find '%s' in '%s' but found '%s'}", - "522": "invariant did not get entry from image response cache", - "523": "[%s]: experimental.useLightningcss does not work with postcss plugins. Please remove 'useLightningcss: true' from your configuration.", - "524": "A default cacheLife profile must always be provided. This is a bug in Next.js.", - "525": "cache: 'no-store' used on fetch for %s with 'export const fetchCache = 'only-cache'", - "526": "Invariant: did not expect response writer to be written to for upgrade request" + "16": "Unknown cacheLife profile \"%s\" is not configured in next.config.js\\nDid you mean \"%s\" without the spaces?", + "17": "Span has already ended", + "18": "Unexpected server data: missing bootstrap script.", + "19": "can't decode empty hex", + "20": "The provided export path '%s' doesn't match the '%s' page.\\nRead more: https://nextjs.org/docs/messages/export-path-mismatch", + "21": "Image with src \"%s\" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.", + "22": "Invalid revalidate configuration provided: %s < 1", + "23": "The \"modules.namedExport\" option requires the \"modules.exportLocalsConvention\" option to be \"camelCaseOnly\"", + "24": "Invalid flags should be run as node detached-flush dev ./path-to/project", + "25": "NodeModuleLoader is not supported in edge runtime.", + "26": "Invariant: Unexpected injection %s", + "27": "Specified images.remotePatterns should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", + "28": "You cannot have two parallel pages that resolve to the same path. Please check %s and %s. Refer to the route group docs for more information: https://nextjs.org/docs/app/building-your-application/routing/route-groups", + "29": "expected appBuildManifest with an \"app\" pageType", + "30": "invariant: unexpected cachedResponse of kind fetch in response cache", + "31": "invariant: getServerSideProps did not return valid props. Please report this.", + "32": "Invariant: Couldn't find action module ID from module map.", + "33": "Turbopack build failed with %s issues:\\n%s", + "34": "source-map information is not available at url() declaration %s", + "35": "To use middleware you must provide a `hostname` and `port` to the Next.js Server", + "36": "API route returned a Response object in the Node.js runtime, this is not supported. Please use `runtime: \"edge\"` instead: https://nextjs.org/docs/api-routes/edge-api-routes", + "37": "\\`%s\\` cannot be called inside \"use cache\". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache", + "38": "Extra keys returned from getStaticPaths in %s (%s) %s", + "39": "Specified basePath should not end with /, found \"%s\"", + "40": "Dynamic WASM code generation ('WebAssembly.instantiate' with a buffer parameter) not allowed in Edge Runtime.\nLearn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation", + "41": "Method not implemented.", + "42": "Page \"%s\" cannot use both \\`export const runtime = 'edge'\\` and export \\`generateStaticParams\\`.", + "43": "Specified pageExtensions is an empty array. Please update it with the relevant extensions or remove it.", + "44": "Using client components is not allowed in this environment.", + "45": "The default export is not a React Component in \"%s/%s\"", + "46": "It's currently unsupported to use \"export *\" in a client boundary. Please use named exports instead.", + "47": "Module `sharp` not found. Please run `npm install --cpu=wasm32 sharp` to install it.", + "48": "An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received %s", + "49": "invariant: progress total can not be zero", + "50": "`after()`: Argument must be a promise or a function", + "51": "Invalid \"devIndicator.buildActivityPosition\" provided, expected one of %s, received %s", + "52": "Method not implemented", + "53": "Module \"%s\" does not export a routeModule.", + "54": "Invariant: PPR cannot be enabled in export mode", + "55": "invariant: failed to render error page", + "56": "invariant expected layout router to be mounted", + "57": "Invariant revalidate: 0 can not be passed to unstable_cache(), must be \"false\" or \"> 0\" %s", + "58": "Middleware is not supported in minimal mode. Please remove the `NEXT_MINIMAL` environment variable.", + "59": "Unexpected action %s", + "60": "missing required error components", + "61": "URL is malformed \"%s\". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls", + "62": "invariant: cache entry required but not generated", + "63": "Failed to parse src \"%s\" on \\`next/image\\`, if using relative image it must start with a leading slash \"/\" or be an absolute URL (http:// or https://)", + "64": "Unexpected route kind %s", + "65": "Missing encryption key for Server Action. This is a bug in Next.js", + "66": "Image with src \"%s\" has invalid \"width\" property. Expected a numeric value in pixels but received \"%s\".", + "67": " should not be imported outside of pages/_document.\\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page", + "68": "Specified assetPrefix is not a string, found type \"%s\" https://nextjs.org/docs/messages/invalid-assetprefix", + "69": "\\`%s\\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", + "70": "webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias", + "71": "Specified i18n.locales contains invalid values (%s), locales must be valid locale tags provided as strings e.g. \"en-US\".\\nSee here for list of valid language sub-tags: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry", + "72": "assetPrefix must start with a leading slash or be an absolute URL(http:// or https://)", + "73": "Image with src \"%s\" has both \"fill\" and \"style.width\" properties. Images with \"fill\" always use width 100% - it cannot be modified.", + "74": "Failed to load script: %s", + "75": "The server has not been instantiated properly. https://nextjs.org/docs/messages/invalid-server-options", + "76": "expected \"app\" manifest data with an \"app\" pageType", + "77": "Invalid %s header", + "78": "Failed to load the `babel-plugin-react-compiler`. It is required to use the React Compiler. Please install it.", + "79": "Node.js binary module ./%s is not supported in the browser. Please only use the module on server side", + "80": "Invalid Server Actions request.", + "81": "Invariant: dynamic responses cannot be unchunked. This is a bug in Next.js", + "82": "Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script", + "83": "Invalid \\`paths\\` value returned from getStaticPaths in %s.\\n\\`paths\\` must be an array of strings or objects of shape { params: [key: string]: string }", + "84": "Invariant: Expected to inject all injections, found %s", + "85": "Invariant: Unexpected optional import %s", + "86": "Failed to set Next.js data cache, items over 2MB can not be cached (%s bytes)", + "87": "Page \"%s\" is missing \"generateStaticParams()\" so it cannot be used with \"output: export\" config.", + "88": "Route %s used \"cookies\" inside \"after(...)\". This is not supported. If you need this data inside an \"after\" callback, use \"cookies\" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after", + "89": "Image with src \"%s\" has \"placeholder='blur'\" property but is missing the \"blurDataURL\" property.\n Possible solutions:\n - Add a \"blurDataURL\" property, the contents should be a small Data URL to represent the image\n - Change the \"src\" property to a static import with one of the supported file types: %s (animated images not supported)\n - Remove the \"placeholder\" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url", + "90": "Failed to initialize render server", + "91": "`after()` will not work correctly, because `waitUntil` is not available in the current environment.", + "92": "An error occurred while loading the instrumentation hook", + "93": "Invariant: previewProps missing previewModeId this should never happen", + "94": "cacheLife() can only be called during App Router rendering at the moment.", + "95": "Specified basePath /. basePath has to be either an empty string or a path prefix\"", + "96": "Image with src \"%s\" has both \"width\" and \"fill\" properties. Only one should be used.", + "97": "A Node.js API is used (%s) which is not supported in the Edge Runtime.\nLearn more: https://nextjs.org/docs/api-reference/edge-runtime", + "98": "An undefined error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined", + "99": "Image with src \"%s\" has invalid \"width\" or \"height\" property. These should be numeric values.", + "100": "Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit", + "101": "The \"parallelServerBuildTraces\" and \"parallelServerCompiles\" options may only be used when build workers can be used. Read more: https://nextjs.org/docs/messages/parallel-build-without-worker", + "102": "If providing both the stale and expire options, the expire option must be greater than the stale option.The expire option indicates how many seconds from the start until it can no longer be used.", + "103": "The \"modules.namedExport\" option requires the \"esModules\" option to be enabled", + "104": "Pass `Infinity` instead of `false` if you do not want to revalidate by time.", + "105": "Specified basePath has to start with a /, found \"%s\"", + "106": "Cannot tee a ReactServerResult that has already been consumed", + "107": "Failed to create a proxy server", + "108": "Specified pageExtensions is not an array of strings, found \"%s\" of type \"%s\". Please update this config or remove it.", + "109": "request failed with status %s", + "110": "Invalid cacheLife() option. Either pass a profile name or object.", + "111": "Route %s used \"connection\" inside \"use cache\". The \\`connection()\\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", + "112": "Invariant: unexpected marker", + "113": "Unknown source map type for %s: %s.", + "114": "Invariant: Unknown request type.", + "115": "Image with src \"%s\" has both \"height\" and \"fill\" properties. Only one should be used.", + "116": "Invariant cant propagate server field, no app initialized", + "117": "The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.", + "118": "Specified images.localPatterns should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", + "119": "request.headers must be an instance of Headers", + "120": "The Middleware \"%s\" must export a \\`middleware\\` or a \\`default\\` function", + "121": "The /404 page can not return notFound in \"getStaticProps\", please remove it to continue!", + "122": "next build doesn't support turbopack yet", + "123": "Invariant: url can not be undefined", + "124": "Failed to load static props", + "125": "\\`pages%s\\` %s", + "126": "Route %s used %s without first calling \\`await connection()\\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers", + "127": "Route %s used \"headers\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"headers\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", + "128": "Using a self signed certificate is only supported with `next dev`.", + "129": "invariant: getStaticProps did not return valid props. Please report this.", + "130": "Invariant: App Route Route Modules cannot be used in the edge runtime", + "131": "Certificate files not found", + "132": "Page changed from static to dynamic at runtime %s%s\\nsee more here https://nextjs.org/docs/messages/app-static-to-dynamic-error", + "133": "Route %s used \"%s\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"%s\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", + "134": "\\`pages/404\\` %s", + "135": "%s be used within %s.", + "136": "Expected webpack publicPath to be a string when using App Router. To customize where static assets are loaded from, use the `assetPrefix` option in next.config.js. If you are customizing your webpack config please make sure you are not modifying or removing the publicPath configuration option", + "137": "Unknown cacheLife profile \"%s\" is not configured in next.config.js\\nmodule.exports = {\n experimental: {\n cacheLife: {\n \"%s\": ...\\n }\n }\n}", + "138": "Unknown StyledString type", + "139": "Can't resolve main package.json file", + "140": "Specified pageExtensions is not an array of strings, found \"%s\". Please update this config or remove it.", + "141": "Unsupported platform: %s", + "142": "The router state header was too large.", + "143": "request failed with empty body", + "144": "> Couldn't find any `pages` or `app` directory. Please create one under the project root", + "145": "Proxy request aborted [%s %s]", + "146": "Proxy request failed: %s", + "147": "Detected a three-dot character ('…') at ('%s'). Did you mean ('...')?", + "148": "Specified i18n should be an object received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "149": "Dynamic Code Evaluation (e. g. 'eval', 'new Function') not allowed in Edge Runtime\nLearn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation", + "150": "Invariant: Expected to inject all imports, missing %s in template", + "151": "Invariant: static responses cannot be streamed", + "152": "Cannot parse form action \"%s\" as a URL", + "153": "Invalid urlPath provided to revalidate(), must be a path e.g. /blog/post-1, received %s", + "154": "Invariant: basePath must be set and cannot be \"/\"", + "155": "unrecognized HMR message \"%s\"", + "156": "Invariant: page postponed without PPR being enabled", + "157": "Route %s used \"cookies\" inside a function cached with \"unstable_cache(...)\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"cookies\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", + "158": "Unexpected middleware effect on /404", + "159": "invariant: invalid relative URL, router received %s", + "160": "invariant image optimizer cache was not initialized", + "161": "A page's revalidate option must be seconds expressed as a natural number. Mixed numbers and strings cannot be used. Received '%s' for %s", + "162": "The Edge Function \"pages%s\" must export a \\`default\\` function", + "163": "images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config", + "164": "webpack build failed: found page without a React Component as default export in pages/%s\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.", + "165": "Invariant: unexpected cachedResponse of kind fetch in response cache", + "166": "%s from Minifier\\n%s", + "167": "An unexpected Turbopack error occurred. Please see the output of `next dev` for more details.", + "168": "Invalid escape character at the end.", + "169": "invariant: invalid previewModeId", + "170": "The key \"%s\" under \"env\" in %s is not allowed. https://nextjs.org/docs/messages/env-key-not-allowed", + "171": "Specified images should be an object received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", + "172": "Failed to fetch registry info for %s, got status %s", + "173": "The packages specified in the 'transpilePackages' conflict with the 'serverExternalPackages': %s", + "174": "Invariant: required internal revalidate method not passed to api-utils", + "175": "Invalid response %s", + "176": "Image with src \"%s\" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.", + "177": "cacheTag() can only be called inside a \"use cache\" function.", + "178": "Route %s used \"%s\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"%s\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", + "179": "Invalid revalidate value \"%s\" on \"%s\", must be a non-negative number or false", + "180": "failed to pipe response", + "181": "Route %s used \"%s\" inside a \"use cache\" which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering", + "182": "Invalid URL", + "183": "ImageResponse moved from \"next/server\" to \"next/og\" since Next.js 14, please import from \"next/og\" instead", + "184": "Dynamic WASM code generation (e. g. 'WebAssembly.compile') not allowed in Edge Runtime.\nLearn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation", + "185": "Invalid redirect object returned from %s for %s\\n%s\nSee more info here: https://nextjs.org/docs/messages/invalid-redirect-gssp", + "186": "Route %s used \"connection\" inside \"after(...)\". The \\`connection()\\` function is used to indicate the subsequent code must only run when there is an actual Request, but \"after(...)\" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after", + "187": "getStaticPaths is only allowed for dynamic SSG pages and was found on '%s'.\\nRead more: https://nextjs.org/docs/messages/non-dynamic-getstaticpaths-usage", + "188": "Next Image Optimization requires %s to be provided. Make sure you pass them as props to the \\`next/image\\` component. Received: %s", + "189": "Failed to load stylesheet: %s", + "190": "Invariant: expected filename to exist in cache", + "191": "Invalid Server Action payload: failed to decrypt.", + "192": "notFound() is not allowed to use in root layout", + "193": "Invariant: %s", + "194": "Invariant: failed to get page data for %s", + "195": "The experimental.allowDevelopmentBuild option requires NODE_ENV to be explicitly set to 'development'.", + "196": "Invariant: Expected to replace all template variables, missing %s in template", + "197": "Invalid \"experimental.cacheHandlers\" provided, expected an object e.g. { default: '/my-handler.js' }, received %s", + "198": "missing mkcert binary", + "199": "Failed to parse source map URL for %s.", + "200": "Invariant: buildID is required", + "201": "ISR cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", + "202": "> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable", + "203": "Configuring Next.js via '%s' is not supported. Please replace the file with 'next.config.js', 'next.config.mjs', or 'next.config.ts'.", + "204": "Expected config.httpAgentOptions to be an object", + "205": "Expected incremental cache to exist. This is a bug in Next.js", + "206": "Specified distDir is not a string, found type \"%s\"", + "207": "Invalid interception route: %s. Cannot use (..) marker at the root level, use (.) instead.", + "208": "Unterminated string", + "209": "Invalid with child. Please remove or use .\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor", + "210": "getStaticPaths with \"fallback: true\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", + "211": "Invariant: should handle all automatic implementable methods, got method: %s", + "212": "A conflicting public file and page file was found for path %s https://nextjs.org/docs/messages/conflicting-public-file-page", + "213": "parseBody is not implemented in the web runtime", + "214": "Invariant: Expected relative import to start with \"next/\", found \"%s\"", + "215": "Unable to find uri in \"%s\"", + "216": "Image with src \"%s\" has both \"fill\" and \"style.position\" properties. Images with \"fill\" always use position absolute - it cannot be modified.", + "217": "Invalid handler fields configured for \"experimental.cacheHandler\":\\n%s", + "218": "Image with src \"%s\" has both \"priority\" and \"loading='lazy'\" properties. Only one should be used.", + "219": "PrefixPathnameNormalizer: prefix \"%s\" should not end with a slash", + "220": "Failed to parse source map %s.", + "221": "The 'public' directory is reserved in Next.js and can not be set as the 'distDir'. https://nextjs.org/docs/messages/can-not-output-to-public", + "222": "Failed to initialize render server \"middleware\"", + "223": "%sused %s. \\`cookies()\\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", + "224": "Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js", + "225": "Unexpected middleware effect on %s", + "226": "Invariant: Missing `host` header from a forwarded Server Actions request.", + "227": "Specified i18n.locales should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "228": "Specified images.loader property (%s) also requires images.path property to be assigned to a URL prefix.\\nSee more info here: https://nextjs.org/docs/api-reference/next/legacy/image#loader-configuration", + "229": "Cannot close a CloseController multiple times", + "230": "'router' and 'Component' can not be returned in getInitialProps from _app.js https://nextjs.org/docs/messages/cant-override-next-props", + "231": "Invalid src prop (%s) on \\`next/image\\`, hostname \"%s\" is not configured under images in your \\`next.config.js\\`\\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host", + "232": "Failed to parse \"%s\":\\n%s", + "233": "The revalidate option must be a number of seconds.", + "234": "Cannot prefetch '%s' because it cannot be converted to a URL.", + "235": "Invariant: expected routes to have been loaded before match", + "236": "Filling a cache during prerender timed out, likely because request-specific arguments such as params, searchParams, cookies() or dynamic data were used inside \"use cache\".", + "237": "Invalid OpenGraph type: %s", + "238": "invariant expected app router to be mounted", + "239": "Invariant: page wasn't built", + "240": "Failed to revalidate %s: %s", + "241": "Invalid value returned from getStaticPaths in %s. Received %s %s", + "242": "Invariant: expected compilation to finish before new matchers were added, possible missing await", + "243": "The \\`fallback\\` key must be returned from getStaticPaths in %s.\\n%s", + "244": "invalid hex: \\`%s%s\\`", + "245": "Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.", + "246": "Route %s used \"%s\" inside \"use cache\". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", + "247": "You cannot have the same slug name \"%s\" repeat within a single dynamic path", + "248": "Unknown cache handler: %s", + "249": "%sused %s. \\`searchParams\\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", + "250": "cacheLife() can only be called inside a \"use cache\" function.", + "251": "\\`%s\\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context", + "252": "Image with src \"%s\" is missing \"loader\" prop.\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader", + "253": "Expected to use %s bindings (%s) for React but the current process is referencing '%s' from the %s bindings (%s). This is likely a bug in our integration of the Next.js server runtime.", + "254": "Invalid fallback mode: %s", + "255": "getStaticPaths is required for dynamic SSG pages and is missing for '%s'.\\nRead more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value", + "256": "Can't use lazyRenderAppPage in minimal mode", + "257": "Invariant: invalid matchers for middleware %s", + "258": "Invariant: response is null. This is a bug in Next.js", + "259": "Route %s used \"%s\" inside a function cached with \"unstable_cache(...)\". The enabled status of draftMode can be read in caches but you must not enable or disable draftMode inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache", + "260": "Not a redirect error", + "261": "Route %s used %s without first calling \\`await connection()\\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-request", + "262": "%s %s", + "263": "Invariant: static generation store missing in %s", + "264": "Failed to find Server Action \"%s\". This request might be from an older or newer deployment. %s", + "265": "Farm is ended, no more calls can be done to it", + "266": "Multiple children were passed to with \\`href\\` of \\`%s\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children%s", + "267": "Dynamic href \\`%s\\` found in while using the \\`/app\\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href", + "268": "Failed to prefetch: %s", + "269": "Invalid interception route: %s. Must be in the format //(..|...|..)(..)/", + "270": "Conflicting public and page file%s found. https://nextjs.org/docs/messages/conflicting-public-file-page\\n%s", + "271": "Invariant: expected to find identity in indexes map", + "272": "Can't use lazyRenderPagesPage in minimal mode", + "273": "Failed to load client build manifest", + "274": "Invariant: null responses cannot be unchunked", + "275": "Turbopack did not return any entrypoints", + "276": "invariant: runMiddleware should not be called in minimal mode", + "277": "%sused %s. \\`headers()\\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", + "278": "export const dynamic = \"force-dynamic\" on page \"%s\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", + "279": "\"use cache\" cannot be used outside of App Router. Expected a WorkStore.", + "280": "Segment \"%s\" exports \"dynamicParams: false\" but the param \"%s\" is missing from the generated route params.", + "281": "Invariant: could not resolve page path for %s at %s", + "282": "Invariant: attempted to hard navigate to the same URL %s %s", + "283": "Attempted to handle request too many times %s", + "284": "unstable_redirect has been renamed to redirect, please update the field to continue. Page: %s", + "285": "Invalid fallback option: %s. Fallback option must be a string, null, undefined, or false.", + "286": "The default export is not a React Component in page: \"%s\"", + "287": "Invariant request handler was not setup", + "288": "Segment names may not start with erroneous periods ('%s').", + "289": "Unexpected error: extracting params from path failed but the regular expression matched", + "290": "Invariant upgrade handler was not setup", + "291": "Invariant: ensurePage can only be called on the development server", + "292": "transformSync doesn't implement reading the file from filesystem", + "293": "invalid hex: \\`%s\\`", + "294": "cacheLifeProfiles should always be provided. This is a bug in Next.js.", + "295": "Unknown action", + "296": "Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js", + "297": "Webpack config is undefined. You may have forgot to return properly from within the \"webpack\" method of your %s.\\nSee more info here https://nextjs.org/docs/messages/undefined-webpack-config", + "298": "A required parameter (%s) was not provided as %s received %s in %s for %s", + "299": "You cannot use both an required and optional catch-all route at the same level (\"[...%s]\" and \"%s\" ).", + "300": "You cannot use both an optional and required catch-all route at the same level (\"[[...%s]]\" and \"%s\").", + "301": "export const dynamic = \"force-static\"/export const revalidate not configured on route \"%s\" with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", + "302": "Expected span to be ended", + "303": "Route name should start with a \"/\", got \"%s\"", + "304": "Route %s used \"headers\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"headers\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", + "305": "Invariant: expected a page response, got %s", + "306": "Route %s used \"%s\" inside a function cached with \"unstable_cache(...)\" which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering", + "307": "%sused %s. \\`params\\` should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", + "308": "The stale option must be a number of seconds.", + "309": "Build failed because of webpack errors", + "310": "ESM packages (%s) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals", + "311": "A page's revalidate option can not be less than or equal to zero for %s. A revalidate option of zero means to revalidate after _every_ request, and implies stale data cannot be tolerated.\\n\\nTo never revalidate, you can set revalidate to \\`false\\` (only ran once at build-time).\\nTo revalidate as soon as possible, you can set the value to \\`1\\`.", + "312": "Component rendered inside next/link has to pass click event to \"onClick\" prop.", + "313": "predicate must return an absolute path or the result of calling next()", + "314": "Invariant: invalid postponed state %s", + "315": "Route Cancelled", + "316": "unknown route type %s for %s", + "317": "Invariant missing routerServerHandler", + "318": "Failed to parse source map for %s.", + "319": "Failed prop type: The prop \\`%s\\` expects a %s in \\`\\`, but got \\`%s\\` instead.%s", + "320": "No children were passed to with \\`href\\` of \\`%s\\` but one child is required https://nextjs.org/docs/messages/link-no-children", + "321": "failed to write chunk to response", + "322": "Additional keys were returned from \\`getStaticPaths\\` in page \"%s\". URL Parameters intended for this dynamic route must be nested under the \\`params\\` key, i.e.:\\n\\n\\treturn { params: { %s } }\\n\\nKeys that need to be moved: %s.\\n", + "323": "Your custom PostCSS configuration may not export a function. Please export a plain object instead.\\nRead more: https://nextjs.org/docs/messages/postcss-function", + "324": "`css.lightning.transformStyleAttr` is not supported by the wasm bindings.", + "325": "No response is returned from route handler '%s'. Ensure you return a \\`Response\\` or a \\`NextResponse\\` in all branches of your handler.", + "326": "Specified basePath is not a string, found type \"%s\"", + "327": "invalid address from server: %s", + "328": "Manifest file is empty", + "329": "To use a multi-match in the destination you must add \\`*\\` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match", + "330": "`css.lightning.transform` is not supported by the wasm bindings.", + "331": "%s from Minifier\\n%s\\n%s", + "332": "Edge function did not return a response", + "333": "Invariant: missing request body.", + "334": "invariant: invalid previewModeEncryptionKey", + "335": "type system invariant violation", + "336": "A null error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined", + "337": "You cannot use different slug names for the same dynamic path ('%s' !== '%s').", + "338": "Unknown \"loader\" found in \"next.config.js\". Expected: %s. Received: %s", + "339": "%s%s", + "340": "No directory access", + "341": "It looks like you didn't end your @import statement correctly. Child nodes are attached to it.", + "342": "Failed to write turborepo access trace file", + "343": "Invalid assetPrefix provided. Original error: %s", + "344": "%sRead more: https://nextjs.org/docs/messages/%s", + "345": "Invariant: Unsupported NextRequest type", + "346": "invariant revalidate must be a number for image-cache", + "347": "Your custom PostCSS configuration must export a \\`plugins\\` key.", + "348": "Route %s used \"%s\" inside \\`after\\`. The enabled status of draftMode can be read inside \\`after\\` but you cannot enable or disable draftMode. See more info here: https://nextjs.org/docs/app/api-reference/functions/after", + "349": "could not get asset: %s", + "350": "No default cacheLife profile.", + "351": "%s from Minifier\\n%s [%s:%s,%s]%s", + "352": "A \"use server\" file can only export async functions, found %s.\\nRead more: https://nextjs.org/docs/messages/invalid-use-server-value", + "353": "Page \"%s\" is missing exported function \"generateStaticParams()\", which is required with \"output: export\" config.", + "354": "Taint can only be used with the taint flag.", + "355": "prepare() must be called before performing this operation", + "356": "getStaticPaths can only be used with dynamic pages, not '%s'.\\nLearn more: https://nextjs.org/docs/routing/dynamic-routes", + "357": "Image with src \"%s\" has invalid \"loading\" property. Provided \"%s\" should be one of %s.", + "358": "Invalid locale returned from getStaticPaths for %s, the locale %s is not specified in %s", + "359": "Invariant: server actions can't be handled during static rendering", + "360": "Failed to parse src \"%s\" on \\`next/image\\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)", + "361": "failed to resolve %s from %s", + "362": "Route %s errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.\n \nOriginal Error: %s", + "363": "Invariant: Expected to replace at least one import", + "364": "invariant: Missing request body.", + "365": "Cannot subscribe to a closed CloseController", + "366": "invariant attempted to set non-image to image-cache", + "367": "Route %s used \"headers\" inside \"after(...)\". This is not supported. If you need this data inside an \"after\" callback, use \"headers\" outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after", + "368": "Invariant might be excluded but missing source", + "369": "getServerSideProps cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export", + "370": "No Stats from webpack", + "371": "Image with src \"%s\" has \"placeholder='blur'\" property but is missing the \"blurDataURL\" property.\n Possible solutions:\n - Add a \"blurDataURL\" property, the contents should be a small Data URL to represent the image\n - Change the \"src\" property to a static import with one of the supported file types: %s (animated images not supported)\n - Remove the \"placeholder\" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url", + "372": "Invariant: Expected postponed to be undefined", + "373": "mis-matched route type: isApp && page for %s", + "374": "NextResponse.rewrite() was used in a app route handler, this is not currently supported. Please remove the invocation to continue.", + "375": "\"next start\" does not work with \"output: export\" configuration. Use \"npx serve@latest out\" instead.", + "376": "Copy to clipboard is not supported in this browser", + "377": "%sused %s. \\`draftMode()\\` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", + "378": "Unknown dynamic param type", + "379": "Page %s does not export a default function.", + "380": "Invalid href: \"%s\" and as: \"%s\", received relative href and external as\\nSee more info: https://nextjs.org/docs/messages/invalid-relative-url-external-as", + "381": "Static generation failed due to dynamic usage on %s, reason: %s", + "382": "Invariant: Expected to inject all injections, missing %s in template", + "383": "Invariant: expected this to reference a module", + "384": "Invariant: Expected to inject all imports, found %s", + "385": "NextResponse.next() was used in a app route handler, this is not supported. See here for more info: https://nextjs.org/docs/messages/next-response-next-in-app-route-handler", + "386": "`getInitialProps` in Document component is not supported with the Edge Runtime.", + "387": "transformSync doesn't implement taking the source code as Buffer", + "388": "Page with dynamic = \"error\" encountered dynamic data method on %s.", + "389": "Invalid redirect arguments. Please use a single argument URL, e.g. res.redirect('/destination') or use a status code and URL, e.g. res.redirect(307, '/destination').", + "390": "invariant SSG should not return an image cache value", + "391": "Invalid distDir provided, distDir can not be an empty string. Please remove this config or set it to undefined", + "392": "Catch-all must be the last part of the URL.", + "393": "\"dynamicParams: true\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/app/building-your-application/deploying/static-exports", + "394": "%s", + "395": "cacheLife() is only available with the experimental.dynamicIO config.", + "396": "Invariant: postponed state should not be present on a resume request", + "397": "Image with src \"%s\" is missing required \"height\" property.", + "398": "Route %s used \"cookies\" inside \"use cache\". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \"cookies\" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache", + "399": "Invariant: Unexpected redirect url format", + "400": "invariant", + "401": "\\`%s\\` cannot be called inside a prerender. This is a bug in Next.js.", + "402": "Specified images.domains should be an Array received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-images-config", + "403": "`turbo.createProject` is not supported by the wasm bindings.", + "404": "Image with src \"%s\" has both \"fill\" and \"style.height\" properties. Images with \"fill\" always use height 100% - it cannot be modified.", + "405": "Loading initial props cancelled", + "406": "Route %s used %s without first calling \\`await connection()\\`.", + "407": "Pass `Infinity` instead of `false` if you want to cache on the client forever without checking with the server.", + "408": "pathname is undefined", + "409": "Invariant: pathname is undefined", + "410": "Pattern should define hostname but found\\n%s", + "411": "\\`unauthorized()\\` is experimental and only allowed to be used when \\`experimental.authInterrupts\\` is enabled.", + "412": "Invariant: pathname can't be empty", + "413": "Invalid i18n.domains values:\\n%s\\n\\ndomains value must follow format { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] }.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "414": "Failed to collect page data for %s", + "415": "Invariant: Expected to replace all template variables, found %s", + "416": "Invariant: Missing 'next-action' header.", + "417": "page %s %s %s", + "418": "Multiple router state headers were sent. This is not allowed.", + "419": "Ensure bailed, found path \"%s\" does not match ensure type (%s)", + "420": "Image with src \"%s\" has invalid \"layout\" property. Provided \"%s\" should be one of %s.", + "421": "Segment names may not start or end with extra brackets ('%s').", + "422": "Invariant: expected a page to be provided when fallback mode is \"%s\"", + "423": "Failed to fetch _devPagesManifest.json. Is something blocking that network request?\\nRead more: https://nextjs.org/docs/messages/failed-to-fetch-devpagesmanifest", + "424": "Failed to load bindings", + "425": "Turbopack build failed with %s errors:\\n%s", + "426": "Invalid src prop (%s) on \\`next/image\\` does not match \\`images.localPatterns\\` configured in your \\`next.config.js\\`\\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns", + "427": "Could not find a production build in the '%s' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id", + "428": "Font loaders must return one or more @font-face's", + "429": "Expected source to have been transformed to a string.", + "430": "The \\`compiler.define\\` option is configured to replace the \\`%s\\` variable. This variable is either part of a Next.js built-in or is already configured via the \\`env\\` option.", + "431": "Image with src \"%s\" has invalid \"placeholder\" property \"%s\".", + "432": "Specified i18n.locales must be an array of locale strings e.g. [\"en-US\", \"nl-NL\"] received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "433": "This loader is only usable as a module", + "434": "Failed to collect configuration for %s", + "435": "Optional route parameters are not yet supported (\"%s\").", + "436": "invariant: invalid previewModeSigningKey", + "437": "Invariant: chainStreams requires at least one stream", + "438": "A page's revalidate option must be seconds expressed as a natural number for %s. Mixed numbers, such as '%s', cannot be used.\\nTry changing the value to '%s' or using \\`Math.ceil()\\` if you're computing the value.", + "439": "Specified i18n.localeDetection should be undefined or a boolean received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "440": "Nonce value from Content-Security-Policy contained HTML escape characters.\nLearn more: https://nextjs.org/docs/messages/nonce-contained-invalid-characters", + "441": "Specified i18n.defaultLocale should be a string.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "442": "Invalid source: %s", + "443": "Page \"%s\" is missing param \"%s\" in \"generateStaticParams()\", which is required with \"output: export\" config.", + "444": "Image with src \"%s\" has invalid \"height\" property. Expected a numeric value in pixels but received \"%s\".", + "445": "Invariant: Unexpected route kind %s in file system cache.", + "446": "Failed to lookup route: %s", + "447": "getStaticPaths was added without a getStaticProps in %s. Without getStaticProps, getStaticPaths does nothing", + "448": "cache: 'force-cache' used on fetch for %s with 'export const fetchCache = 'only-no-store'", + "449": "Specified images.loader property (%s) cannot be used with images.loaderFile property. Please set images.loader to \"custom\".", + "450": "Invariant: Unknown route module type", + "451": "Image with src \"%s\" is missing required \"width\" property.", + "452": "invariant: attempted to buildStaticPaths without \"staticPathsResult\" or \"getStaticPaths\" %s", + "453": "Invariant: Unexpected route kind", + "454": "\\`redirect\\` and \\`notFound\\` can not both be returned from %s at the same time. Page: %s\\nSee more info here: https://nextjs.org/docs/messages/gssp-mixed-not-found-redirect", + "455": "generateBuildId did not return a string. https://nextjs.org/docs/messages/generatebuildid-not-a-string", + "456": "Specified i18n.domains must be an array of domain objects e.g. [ { domain: 'example.fr', defaultLocale: 'fr', locales: ['fr'] } ] received %s.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "457": "INVALID_DEFAULT_EXPORT", + "458": "You cannot define a route with the same specificity as a optional catch-all route (\"%s\" and \"%s[[...%s]]\").", + "459": "Invariant: missing bootstrap script. This is a bug in Next.js", + "460": "An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received %s", + "461": "Specified images.loaderFile does not exist at \"%s\".", + "462": "The `size` option must be one of 32, 64, 128, 256, 512, or 1024", + "463": "Invariant: expected a result to be returned", + "464": "The default export is not a React Component in page: \"/_app\"", + "465": "Preview data is limited to 2KB currently, reduce how much data you are storing as preview data to continue", + "466": "Failed to read file contents of %s.", + "467": "Invariant: NodeNextRequest.stream() can only be called once", + "468": "`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context", + "469": "Invariant: incrementalCache missing in unstable_cache %s", + "470": "Cannot consume a ReactServerResult that has already been consumed", + "471": "Specified i18n.locales contains the following duplicate locales:\\n%s\\nEach locale should be listed only once.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "472": "Invariant: renderHTML should not be called in minimal mode", + "473": "invariant global layout router not mounted", + "474": "Build optimization failed: found page%s without a React Component as default export in \\n%s\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.\\n", + "475": "Page \"%s\" cannot use both \"use client\" and export function \"generateStaticParams()\".", + "476": "The \"icss\" option is deprecated, use \"modules.compileType: \"icss\"\" instead", + "477": "The Next.js Babel loader does not support .mjs or .cjs config files.", + "478": "The \"target\" property is no longer supported in %s.\\nSee more info here https://nextjs.org/docs/messages/deprecated-target-config", + "479": "Unexpected file path kind: %s", + "480": "Next.js requires react >= 18.2.0 to be installed.", + "481": "The provided path \\`%s\\` does not match the page: \\`%s\\`.", + "482": "%sused %s. \\`params\\` should be awaited before using its properties. The following properties were not available through enumeration because they conflict with builtin property names: %s. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis", + "483": "Abort fetching component for route: \"%s\"", + "484": "During prerendering, %s rejects when the prerender is complete. Typically these errors are handled by React but if you move %s to a different context by using \\`setTimeout\\`, \\`after\\`, or similar functions you may observe this error and you should handle it in that context.", + "485": "hmrRefresh can only be used in development mode. Please use refresh instead.", + "486": "Invalid interception route: %s. Cannot use (..)(..) marker at the root level or one level up.", + "487": "Encountered unknown module type: %s. Please open an issue.", + "488": "\\`forbidden()\\` is experimental and only allowed to be enabled when \\`experimental.authInterrupts\\` is enabled.", + "489": "expected string|object", + "490": "Circular structure in \"getInitialProps\" result of page \"%s\". https://nextjs.org/docs/messages/circular-structure", + "491": "loader %s for match \"%s\" does not have serializable options. Ensure that options passed are plain JavaScript objects and values.", + "492": "unrecognized Turbopack HMR message \"%s\"", + "493": "Specified \"i18n\" cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/messages/export-no-i18n", + "494": "If providing both the revalidate and expire options, the expire option must be greater than the revalidate option.The expire option indicates how many seconds from the start until it can no longer be used.", + "495": "Image with src \"%s\" must use \"width\" and \"height\" properties or \"layout='fill'\" property.", + "496": "Invariant attempted to optimize _next/image itself", + "497": "\\`redirect\\` can not be returned from getStaticProps during prerendering (%s)\\nSee more info here: https://nextjs.org/docs/messages/gsp-redirect-during-prerender", + "498": "Invalid compiler type", + "499": "You cannot have the slug names \"%s\" and \"%s\" differ only by non-word symbols within a single dynamic path", + "500": "Image Optimization using the default loader is not compatible with \\`{ output: 'export' }\\`.\n Possible solutions:\n - Remove \\`{ output: 'export' }\\` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure \\`{ images: { unoptimized: true } }\\` in \\`next.config.js\\` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api", + "501": "invariant image should not be incremental-cache", + "502": "Edge runtime is not supported with `generateStaticParams`.", + "503": "Cancel rendering route", + "504": "Invariant: AsyncLocalStorage accessed in runtime where it is not available", + "505": "\\nError: you provided query values for %s which is an auto-exported page. These can not be applied since the page can no longer be re-rendered on the server. To disable auto-export for this page add \\`getInitialProps\\`\\n", + "506": "invariant: imageOptimizer should not be called in minimal mode", + "507": "Invariant: missing action dispatcher.", + "508": "Failed to get registry from \"%s\".", + "509": "NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted", + "510": "Invariant: No locales provided", + "511": "The default export is not a React Component in page: \"/_document\"", + "512": "module not found", + "513": "Duration is too long to express as float64: %s", + "514": "cacheTag() is only available with the experimental.dynamicIO config.", + "515": "Specified i18n.defaultLocale should be included in i18n.locales.\\nSee more info here: https://nextjs.org/docs/messages/invalid-i18n-config", + "516": "unstable_notFound has been renamed to notFound, please update the field to continue. Page: %s", + "517": "Invariant: The detected locale does not match the locale in the query. Expected to find '%s' in '%s' but found '%s'}", + "518": "invariant did not get entry from image response cache", + "519": "[%s]: experimental.useLightningcss does not work with postcss plugins. Please remove 'useLightningcss: true' from your configuration.", + "520": "A default cacheLife profile must always be provided. This is a bug in Next.js.", + "521": "cache: 'no-store' used on fetch for %s with 'export const fetchCache = 'only-cache'", + "522": "Invariant: did not expect response writer to be written to for upgrade request" } diff --git a/packages/next/taskfile-swc.js b/packages/next/taskfile-swc.js index c5bc3910bb656..76a0bea2872cf 100644 --- a/packages/next/taskfile-swc.js +++ b/packages/next/taskfile-swc.js @@ -22,7 +22,9 @@ module.exports = function (task) { if (file.base.endsWith('.d.ts') || file.base.endsWith('.json')) return const plugins = [ - [path.join(__dirname, 'next_error_code_swc_plugin.wasm'), {}], + ...(file.base.includes('.test.') + ? [] + : [[path.join(__dirname, 'next_error_code_swc_plugin.wasm'), {}]]), ] const isClient = serverOrClient === 'client' diff --git a/test/development/error-overlay/index.test.tsx b/test/development/error-overlay/index.test.tsx index 7e97ad3463451..70a64b99c5dae 100644 --- a/test/development/error-overlay/index.test.tsx +++ b/test/development/error-overlay/index.test.tsx @@ -12,7 +12,7 @@ describe('DevErrorOverlay', () => { '[data-nextjs-error-code]' ) const code = await errorCode.getAttribute('data-nextjs-error-code') - expect(code).toBe('E129') + expect(code).toBe('E127') }) it('can get error code from client side error thrown by framework', async () => { @@ -26,6 +26,6 @@ describe('DevErrorOverlay', () => { '[data-nextjs-error-code]' ) const code = await errorCode.getAttribute('data-nextjs-error-code') - expect(code).toBe('E212') + expect(code).toBe('E209') }) })