Closed bhelx closed 2 years ago
I was getting error when trying to resolve the as-pdk module:
ERROR TS6054: File '~lib/@extism/as-pdk.ts' not found. import { Host } from '@extism/as-pdk'; ~~~~~~~~~~~~~~~~ in assembly/index.ts(1,22) FAILURE 1 parse error(s)
I resolved by changing the import to:
import { Host } from '@extism/as-pdk/index.d.ts';
But I think the proper fix is for the index file to be a .ts file and not a .d.ts file.
.ts
.d.ts
Thanks! When you initially installed this before the fix, was it via npm?
yes but i followed up by testing against my local fork
I was getting error when trying to resolve the as-pdk module:
I resolved by changing the import to:
But I think the proper fix is for the index file to be a
.ts
file and not a.d.ts
file.