You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue where I'm compiling some .proto files using protoc and protoc-gen-ts where the outcome of the .ts file results in an import with backslashes
import * as dependency_5 from "./google\\protobuf\\empty";
Building this on an Azure Linux pipeline causes issues. I was able to fix the issue by altering the index.js source file:
I'm having the same issue where the file generated on windows have backslashes instead of forward. import * as dependency_1 from "./google\\protobuf\\empty";
Is there a parameter where we can specify which we want or another way to fix this?
Hi,
I'm facing an issue where I'm compiling some .proto files using protoc and protoc-gen-ts where the outcome of the .ts file results in an import with backslashes
import * as dependency_5 from "./google\\protobuf\\empty";
Building this on an Azure Linux pipeline causes issues. I was able to fix the issue by altering the index.js source file:
${path.relative(path.dirname(fileDescriptor.name), moduleSpecifier)
to
${path.posix.relative(path.dirname(fileDescriptor.name), moduleSpecifier)
As a result the import is now:
import * as dependency_5 from "./google/protobuf/empty";
I'm wondering is this is the best approach or not, and if this can be fixed in future versions.
Thanks!
The text was updated successfully, but these errors were encountered: