Open yijiebaiyi opened 11 months ago
make some additions
ts-node version: 8.6.2 tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"esModuleInterop": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
This sounds like a typechecking issue, as i never tested the rust implementation for type errors.
Automatically generating ts files is successful, but running npm run build reports an error: Property 'Buffer' does not exist on type 'typeof globalThis'
The code snippet where the error occurred:
the proto message has type bytes:
my env: node version: v14.18.3 protoc version: 3.13.0 protoc-gen-ts version: 0.8.7
what should I do?