tatethurston / TwirpScript

A protobuf RPC framework for JavaScript and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

root in config

Blancduman opened this issue · comments

Hello.

Specifing a path with nesting in root -> twirp.json cause error.

Error: Cannot find module 'path\to\protos\node_modules\twirpscript\dist\compiler.js'

It's trying to find compiler.js in nested path, not in project's nodes_modules .

{
   "root": "my/protos",
   "dest": "my/api"
}

And it's windows case

Thanks for reporting @Blancduman I’ll take a look

@Blancduman Can you let me know if you still encounter this issue on v0.0.63 https://github.com/tatethurston/TwirpScript/releases/tag/v0.0.63