solo-io / proxy-runtime

Apache License 2.0
86 stars 25 forks source link

Files not found #71

Open c-r33d opened 2 years ago

c-r33d commented 2 years ago

Following the instructions in the Readme leaves me with the following error when trying to run "asbuild" script:

File '~lib/@solo-io/proxy-runtime/proxy.ts' not found. TS6054: File '~lib/@solo-io/proxy-runtime.ts' not found.

The lines that cause these errors are:

export * from "@solo-io/proxy-runtime/proxy"; // this exports the required functions for the proxy to interact with us.
import { RootContext, Context, registerRootContext, FilterHeadersStatusValues, stream_context } from "@solo-io/proxy-runtime";

This is stored in my assembly/index.ts file, as noted in the readme.

Specs: OS: macOs Node: 16.14.0

Package.json dependencies:

 "devDependencies": {
    "assemblyscript": "^0.20.13"
  },
  "dependencies": {
    "@solo-io/proxy-runtime": "^0.1.15"
  },
c-r33d commented 2 years ago

I fixed this by mimicing the version of assemblyscript used by proxy-runtime.

scaledapps commented 1 year ago

I fixed this by mimicing the version of assemblyscript used by proxy-runtime. @c-r33d : can you explain what you meant by 'mimicing the version'? Thanks.

jallaix commented 1 year ago

Use:

  "devDependencies": {
    "assemblyscript": "^0.19.23"
  },
  "dependencies": {
    "@solo-io/proxy-runtime": "^0.1.15"
  }

as assemblyscript > v0.19.23 doesn't seem supported by the proxy-runtime.

teaglebuilt commented 1 year ago

Well this also does the same thing if you install another dependency, which i assume is supported?

//@ts-ignore
export * from "@solo-io/proxy-runtime/proxy";
//@ts-ignore
import { get_buffer_bytes } from "@solo-io/proxy-runtime/runtime";
import {
  log,
  LogLevelValues,
  RootContext, 
  Context, 
  registerRootContext,
  FilterDataStatusValues
} from "@solo-io/proxy-runtime";
import { createClient, RedisClientType } from "redis";
ERROR TS6054: File '~lib/redis.ts' not found.

 import { createClient, RedisClientType } from "redis";
                                               ~~~~~~~
 in assembly/index.ts(14,47)

FAILURE 1 parse error(s)