#Overlapping rules in `_routes.json` after 3.8

5 messages · Page 1 of 1 (latest)

dry haven
#

Hey my deployments fail on cloudflare-pages since 3.8. I get this error during build:

Error: Failed to publish your Function. Got error: Error 8000057: Overlapping rules in `_routes.json` are not allowed. Rule "/_nuxt/builds/*" is overlapped by "/_nuxt/*". Remove one of the rules to continue.

Any ideas?

#

The error comes from this:

{
  "version": 1,
  "include": [
    "/*"
  ],
  "exclude": [
    "/_nuxt/*",
    "/_nuxt/builds/*",
    "/_nuxt/builds/meta/*",

Since it has: "/_nuxt/*" it shouldn't have "/_nuxt/builds/*" or "/_nuxt/builds/meta" as those are counted as overlapping

eternal valve
#

Did you find a solution?

dry haven
#

No, but as a workaround you can set manifest to false in nuxtConfig, now there is an open issue on nitro, so it's being investigated.

eternal valve
#

After change the manifest pnpm didn't work, do you have the same problem too?

`ℹ Building Nitro Server (preset: cloudflare-pages) nitro 13:54:01
(node-resolve plugin) Could not resolve import "unenv/runtime/node/string_decoder/index/" in /projects/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js using exports defined in /projects/node_modules/.pnpm/unenv@1.7.4/node_modules/unenv/package.json.

[nitro 13:54:11] ERROR Error: Cannot resolve "unenv/runtime/node/string_decoder/index/" from "/projects/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js" and externals are not allowed!

undefined

[13:54:11] ERROR Cannot resolve "unenv/runtime/node/string_decoder/index/" from "/projects/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js" and externals are not allowed!
`