esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.05k stars 146 forks source link

Failed to import - io-ts (sub-modules) #286

Open MichaelHirn opened 2 years ago

MichaelHirn commented 2 years ago

Failing module

274 fixed importing io-ts/index.ts, however due to architecture of the library almost everyone needs to import one of its submodules, e.g. io-ts/Type which does not yet work.

import * as T from 'https://esm.sh/io-ts/Type'

I created a repo with test files to reproduce error here.

Error message

After running deno run I got this:

error: TS2370 [ERROR]: A rest parameter must be of an array type.
    ...components: {
    ^
    at https://cdn.esm.sh/v72/io-ts@2.2.16/lib/Schemable.d.ts:63:5

TS2370 [ERROR]: A rest parameter must be of an array type.
    ...components: {
    ^
    at https://cdn.esm.sh/v72/io-ts@2.2.16/lib/Schemable.d.ts:124:5

TS2370 [ERROR]: A rest parameter must be of an array type.
    ...components: {
    ^
    at https://cdn.esm.sh/v72/io-ts@2.2.16/lib/Schemable.d.ts:188:5

Found 3 errors.

Additional info

ije commented 2 years ago

oh, i will take a look

MichaelHirn commented 2 years ago

may or may not be related to #342