Skip to content

Conversation

crookedneighbor
Copy link
Contributor

Was getting typescript compilation errors when using the module:

npm run typescript

> [email protected] typescript
> tsc --declaration

node_modules/@scryfall/api-types/src/objects/Card/values/ImageUris.ts:1:21 - error TS2307: Cannot find module 'src/internal' or its corresponding type declarations.

1 import { Uri } from "src/internal";
                      ~~~~~~~~~~~~~~

node_modules/@scryfall/api-types/src/objects/Card/values/PurchaseUris.ts:1:21 - error TS2307: Cannot find module 'src/internal' or its corresponding type declarations.

1 import { Uri } from "src/internal";
                      ~~~~~~~~~~~~~~

node_modules/@scryfall/api-types/src/objects/Card/values/RelatedUris.ts:1:21 - error TS2307: Cannot find module 'src/internal' or its corresponding type declarations.

1 import { Uri } from "src/internal";
                      ~~~~~~~~~~~~~~


Found 3 errors in 3 files.

Errors  Files
     1  node_modules/@scryfall/api-types/src/objects/Card/values/ImageUris.ts:1
     1  node_modules/@scryfall/api-types/src/objects/Card/values/PurchaseUris.ts:1
     1  node_modules/@scryfall/api-types/src/objects/Card/values/RelatedUris.ts:1

Correcting these paths to point to the correct relative path fixed the issue for me.

These paths backed out of src then back into src, but we can/should cancel those out.
@scarletcs scarletcs merged commit 656b327 into scryfall:main Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants