enviodev / hyperindex

📖 Blazing-fast multi-chain indexer
https://envio.dev
78 stars 6 forks source link

typescript type import error on `./bindings/OpaqueTypes.ts` #341

Closed JasoonS closed 1 week ago

JasoonS commented 1 week ago

Describe the bug When running pnpm tsc on an indexer with v2.7.4 I get this:

[10:36:53] Starting compilation in watch mode...

node_modules/.pnpm/envio@2.7.4_typescript@5.2.2/node_modules/envio/src/Address.gen.ts:6:35 - error TS2307: Cannot find module './bindings/OpaqueTypes.ts' or its corresponding type declarations.

6 import type {Address as $$t} from './bindings/OpaqueTypes.ts';

Luckily it is benign, and doesn't affect runtime.

JonoPrest commented 1 week ago

Interesting, the file is here codegenerator/cli/npm/envio/src/bindings/OpaqueTypes.ts

But I can see the package doesn't have the ts files in the installed version 🤔

Screenshot 2024-11-18 at 11 54 57

DZakh commented 1 week ago

This is because we include only .res files to the package. Probably should include the whole src dir.

image