cmorten / opine

Minimalist web framework for Deno ported from ExpressJS.
https://github.com/cmorten/opine/blob/main/.github/API/api.md
MIT License
854 stars 43 forks source link

Outdated dependencies #150

Closed sh0tx420 closed 2 years ago

sh0tx420 commented 2 years ago

Issue

Setup:

Details

The dependencies are outdated. Latest std version is 0.117.0. The old std version's code in the async module causes the first error, but it is probably fixed in the latest version. Not sure about the other dependencies however.

Edit: apparently it's trying to download 2 different versions of ipaddr.js? with 2.0.1 being the latest

Error log:

Check file:///<path>/src/main.js
error: TS2339 [ERROR]: Property 'getIterator' does not exist on type 'ReadableStream<R>'.
  return res.readable.getIterator();
                      ~~~~~~~~~~~
    at https://deno.land/std@0.69.0/async/pool.ts:45:23

TS2300 [ERROR]: Duplicate identifier 'Address'.
    export = Address;
             ~~~~~~~
    at https://cdn.esm.sh/v58/ipaddr.js@2.0.0/lib/ipaddr.js.d.ts:66:14

    'Address' was also declared here.
        export = Address;
                 ~~~~~~~
        at https://cdn.skypack.dev/-/ipaddr.js@v2.0.1-Gb4sD7xwOvS6n7C0Ihjk/dist=es2019,mode=types/lib/ipaddr.js.d.ts:67:14

TS2300 [ERROR]: Duplicate identifier 'Address'.
    export = Address;
             ~~~~~~~
    at https://cdn.skypack.dev/-/ipaddr.js@v2.0.1-Gb4sD7xwOvS6n7C0Ihjk/dist=es2019,mode=types/lib/ipaddr.js.d.ts:67:14

    'Address' was also declared here.
        export = Address;
                 ~~~~~~~
        at https://cdn.esm.sh/v58/ipaddr.js@2.0.0/lib/ipaddr.js.d.ts:66:14

Found 3 errors.