w3up icon indicating copy to clipboard operation
w3up copied to clipboard

bundler issue with Vite build

Open jchris opened this issue 1 year ago • 0 comments

I haven't seen this in prior uses, so it might be a flash in the pan. If anyone else sees similar, please share.

╰─± npm run build

> [email protected] build
> tsc && vite build

node_modules/@web3-storage/access/src/types.ts:214:11 - error TS2344: Type 'InferInvokedCapability<CAP>["nb"]' does not satisfy the constraint 'Record<string, unknown> | undefined'.
  Type 'InferCapability<{ can: A; with: R; nb: Caveats; } & Capability<Ability, `${string}:${string}`, unknown>>["nb"]' is not assignable to type 'Record<string, unknown> | undefined'.

214   InferNb<InferInvokedCapability<CAP>['nb']> & {
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@web3-storage/access/src/types.ts:214:11 - error TS2536: Type '"nb"' cannot be used to index type 'InferInvokedCapability<CAP>'.

214   InferNb<InferInvokedCapability<CAP>['nb']> & {
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@web3-storage/upload-client/src/types.ts:26:25 - error TS2307: Cannot find module '@ipld/unixfs/src/unixfs' or its corresponding type declarations.

26 import * as UnixFS from '@ipld/unixfs/src/unixfs'
                           ~~~~~~~~~~~~~~~~~~~~~~~~~


Found 3 errors in 2 files.

Errors  Files
     2  node_modules/@web3-storage/access/src/types.ts:214
     1  node_modules/@web3-storage/upload-client/src/types.ts:26

jchris avatar Sep 20 '23 11:09 jchris