#Cannot find name 'URLPattern' when using `deno.ns` lib

14 messages · Page 1 of 1 (latest)

worn mauve
#

I am trying to fix this project that has the following relevant parts of the deno.jsonc config

{
  "compilerOptions": {
    "lib": [
      "dom",
      "dom.iterable",
      "dom.asynciterable",
      "deno.ns"
    ]
  }
}

This is giving me errors such as

TS2304 [ERROR]: Cannot find name 'URLPattern'.
    new URLPattern(
        ~~~~~~~~~~

Anyone know the magic combination to get this fixed?

lost vault
worn mauve
#

Nope, nowhere in the repo

lost vault
#

deno version?

worn mauve
#

deno test is failing

#

deno 1.25.4+9a9dd12

lost vault
#

Try adding "dom.extras" to the libs. No idea why it's not failing for me though

worn mauve
#

same thing

#

I'll try the stable release of deno I guess

#

hmm, stable works

#

without dom.extras, that messes it up even more

#

odd, but thanks for the help