Skip to content

error TS2307: Cannot find module './declarations/cap/root' #27

@ildefons

Description

@ildefons

`
Type> node1@1.0.0 start

tsc && node dist/app.js

node_modules/@psychedelic/cap-js/dist/index.d.ts:4:29 - error TS2307: Cannot find module './declarations/cap/router' or its corresponding type declarations.

4 import _ROUTER_SERVICE from "./declarations/cap/router";
~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@psychedelic/cap-js/dist/index.d.ts:5:27 - error TS2307: Cannot find module './declarations/cap/root' or its corresponding type declarations.

5 import _ROOT_SERVICE from "./declarations/cap/root";
~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@psychedelic/cap-js/dist/index.d.ts:6:181 - error TS2307: Cannot find module './declarations/cap' or its corresponding type declarations.

6 import { GetUserRootBucketsResponse, GetTokenContractRootBucketResponse, GetTransactionResponse, GetTransactionsResponseBorrowed, GetIndexCanistersResponse, IndefiniteEvent } from "./declarations/cap";
~~~~~~~~~~~~~~~~~~~~

node_modules/@psychedelic/cap-js/dist/index.d.ts:7:395 - error TS2307: Cannot find module './declarations/cap' or its corresponding type declarations.

7 export { Root, Event, GetBucketResponse, GetNextCanistersResponse, GetTransactionResponse, GetTransactionsArg, GetTransactionsResponseBorrowed, GetUserTransactionsArg, IndefiniteEvent, DetailValue, WithIdArg, WithWitnessArg, Witness, Router, GetIndexCanistersResponse, GetTokenContractRootBucketArg, GetTokenContractRootBucketResponse, GetUserRootBucketsArg, GetUserRootBucketsResponse, } from "./declarations/cap";
~~~~~~~~~~~~~~~~~~~~

node_modules/@psychedelic/cap-js/dist/utils.d.ts:2:23 - error TS2307: Cannot find module './declarations/cap/root' or its corresponding type declarations.

2 import { Event } from "./declarations/cap/root";
~~~~~~~~~~~~~~~~~~~~~~~~~

Found 5 errors in 2 files.

Errors Files
4 node_modules/@psychedelic/cap-js/dist/index.d.ts:4
1 node_modules/@psychedelic/cap-js/dist/utils.d.ts:2script declarations not found when using cap-js within a typescript project:
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions