Open c-r33d opened 2 years ago
I fixed this by mimicing the version of assemblyscript used by proxy-runtime.
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.
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.
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)
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:
This is stored in my assembly/index.ts file, as noted in the readme.
Specs: OS: macOs Node: 16.14.0
Package.json dependencies: