Type Error when updating to v1.11.1
Closed this issue · 4 comments
rharriso commented
There seems to be some issue with the types exports for @alch/alchemy-web3
v1.1.11.
import {
AssetTransfersCategory,
AssetTransfersParams,
AssetTransfersResult,
} from '@alch/alchemy-web3'
/// Module '"@alch/alchemy-web3"' has no exported member 'AssetTransfersResult'.ts(2305)
I wasn't able to see anything strange in the build or structure of the types file between 1.1.9 (working) and 1.1.11.
dlazares commented
I'm also not seeing AssetTransfersCategory exported. My autocomplete generates this import
import {AssetTransfersCategory} from "@alch/alchemy-web3/dist/esm/alchemy-apis/types";
which results in this error
SyntaxError: Unexpected token 'export'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
I recently updated from 1.1.9 => 1.1.12
dphilipson commented
Sorry for the trouble on this. I'm working on a fix.
dphilipson commented
Fix is published in v1.2.1. Really sorry for the inconvenience!
dlazares commented
Thanks for hopping on this so fast. You made my day :)