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
What version of protobuf and what language are you using?
Version: v3.20.1
Language: Javascript
What operating system (Linux, Windows, ...) and version?
Ubuntu 20.04 running in WSL (this isn't relevant)
What runtime / compiler are you using (e.g., python version or gcc version)
Node v16.14.2
What did you do?
Steps to reproduce the behavior:
Write a proto
Compile it with protoc --js_out="import_style=commonjs,binary:${OUT_DIR}" ...
Try and require/import the output file
NodeJS complains
What did you expect to see
NodeJS load the file correctly
What did you see instead?
/path/to/sample_proto_pb.js:16
var global = (function () { return this || window || global || self || Function('return this')(); }).call(null);
^
ReferenceError: window is not defined
Anything else we should know about your project / environment
n/a
This was fixed in 3.19.x by PR #9156, but regressed to the old behavior in 3.20.x. I've verified that this works with protoc version 3.19.4, but fails with 3.20.1.
The text was updated successfully, but these errors were encountered:
What version of protobuf and what language are you using?
Version: v3.20.1
Language: Javascript
What operating system (Linux, Windows, ...) and version?
Ubuntu 20.04 running in WSL (this isn't relevant)
What runtime / compiler are you using (e.g., python version or gcc version)
Node v16.14.2
What did you do?
Steps to reproduce the behavior:
protoc --js_out="import_style=commonjs,binary:${OUT_DIR}" ...
What did you expect to see
NodeJS load the file correctly
What did you see instead?
Anything else we should know about your project / environment
n/a
This was fixed in 3.19.x by PR #9156, but regressed to the old behavior in 3.20.x. I've verified that this works with protoc version 3.19.4, but fails with 3.20.1.
The text was updated successfully, but these errors were encountered: