storacha / content-claims

🦪 Implementation of the Content Claims Protocol.
Other
10 stars 1 forks source link

error from tsc whend epending on content-claims: `Could not find a declaration file for module '../../capability/assert.js'` #40

Closed gobengo closed 7 months ago

gobengo commented 10 months ago
bengo@bengo ~/web3-storage/hoverboard ⚡  npm run build

> hoverboard@1.3.0 build
> tsc --build

node_modules/@web3-storage/content-claims/src/server/service/api.ts:2:96 - error TS7016: Could not find a declaration file for module '../../capability/assert.js'. '/Users/bengo/web3-storage/hoverboard/node_modules/@web3-storage/content-claims/src/capability/assert.js' implicitly has an 'any' type.

2 import { AssertInclusion, AssertLocation, AssertPartition, AssertRelation, AssertEquals } from '../../capability/assert.js'
                                                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@web3-storage/content-claims/src/client/api.ts:2:25 - error TS7016: Could not find a declaration file for module '../capability/assert.js'. '/Users/bengo/web3-storage/hoverboard/node_modules/@web3-storage/content-claims/src/capability/assert.js' implicitly has an 'any' type.

2 import * as Assert from '../capability/assert.js'
                          ~~~~~~~~~~~~~~~~~~~~~~~~~
gobengo commented 10 months ago

note that these are the api.ts files not .js files. I think this might be fixed by having package.json only point to dist and not src, which I will make PR for