solo-io / wasm

Web Assembly tools and SDKs for extending cloud-native infrastructure
Apache License 2.0
306 stars 40 forks source link

File '~lib/@solo-io/proxy-runtime/proxy.ts' not found #294

Open scaledapps opened 2 years ago

scaledapps commented 2 years ago

Trying a sample assembly script. What's missing here?

prashantpatil~$npm list
wasm_ascript@ /Users/prashantpatil/istio/wasm_ascript ├── @solo-io/proxy-runtime@0.1.15 └── assemblyscript@0.21.6

prashantpatil~$npm install

up to date, audited 5 packages in 750ms

1 package is looking for funding run npm fund for details

found 0 vulnerabilities prashantpatil~$npm run asbuild:debug

asbuild:debug asc assembly/index.ts --target debug

ERROR TS6054: File '~lib/@solo-io/proxy-runtime/proxy.ts' not found. : 1 │ export * from "@solo-io/proxy-runtime/proxy"; // this exports the required functions for the proxy to interact with us. │ ~~~~~~ └─ in assembly/index.ts(1,15)

ERROR TS6054: File '~lib/@solo-io/proxy-runtime.ts' not found. : 2 │ import { RootContext, Context, registerRootContext, FilterHeadersStatusValues, stream_context } from "@solo-io/proxy-runtime"; │ ~~~~~~~~ └─ in assembly/index.ts(2,102)

FAILURE 2 parse error(s)

image
scaledapps commented 2 years ago

@yuval-k : can you please help?