New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support importSuffix with outputTypeRegistry #857
Comments
if it would import typeRegistry and other script which are generated without .js and protobufjs/minimal with .js it would be perfect, how can i do that? |
okay so for now, i removed which seems to be working fine for now |
Hi @adsau59 , this is not entirely surprising, as the We have a test case for https://github.com/stephenh/ts-proto/blob/main/integration/import-suffix/parameters.txt Thanks! |
so the issue is that, generated files are I am not sure what exactly what you want me to do, but I'd be happy to create a PR |
Ah yeah; the readme describes in ts-proto here but the basic gist is that So we already have an test, in the My suggestion was to try enabling the If you don't, hopefully you could nudge the |
Thanks for the explanation, will try it out and get back to u... |
@stephenh can u assign me the issue pls? |
I am using this command to generate
in this,
outputTypeRegistry=true
creates atypeRegistery.ts
file which other generated proto ts files tries to import, but asimportSuffix=.js
is also set, it tries to importtypeRegistery.js
instead which gives meError: Cannot find module './typeRegistry.js'
I want to use the outputTypeRegistry, as it does kindof eases my work as i dont have to maintain the list myself... but I also need
importSuffix=.js
as cocos doesn't work without itThe text was updated successfully, but these errors were encountered: