ReferenceError: proto is not defined
@dibenede 已经在做这个了。
开始于 2022年8月26日。
评估
这个 Issue 还没有评估数据。
描述
What version of protobuf and what language are you using?
Version: Protocol Buffers v3.19.4
Language: Javascript
What operating system (Linux, Windows, ...) and version?
Linux Debian 11
What runtime / compiler are you using (e.g., python version or gcc version)
Node v12, Node v16
What did you do?
Steps to reproduce the behavior:
- Install protoc through Debian package system
- Install google/protobufer
- Define two different correct ".proto" files
- Import one file to another with "import" statement
- Run protoc with "protoc --proto_path=./ --js_out=import_style=commonjs,binary:./ *.proto"
- JS code is generated, for file that is importing
var something_pb = require('./something_pb.js');
goog.object.extend(proto, something_pb);
7: Import generated files as javascript code:
require("./proto/hello_pb")
- Run the code
What did you expect to see
Everything goes fine
What did you see instead?
goog.object.extend(proto, core_pb);
^
ReferenceError: proto is not defined
- 主要语言
- JavaScript
- 星标
- 471
- 派生
- 91
- 平均合并
- 3 小时 57 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
protocolbuffers/protobuf-javascript 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 30/100
protocolbuffers/protobuf-javascript#248 · 1 条评论 · 13 个 reaction ·
-
question
难度 3/5 1-2 天 新手友好度 45/100
protocolbuffers/protobuf-javascript#222 · 9 条评论 ·
-
enhancement port-fix triaged
难度 4/5 3-5 天 新手友好度 35/100
protocolbuffers/protobuf-javascript#185 · 1 条评论 ·
-
enhancement port-fix triaged
难度 4/5 3-5 天 新手友好度 35/100
protocolbuffers/protobuf-javascript#182 · 3 条评论 · 1 个 reaction ·
查看 protocolbuffers/protobuf-javascript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
Issue-Bug
难度 2/5 1-3 小时 新手友好度 68/100
sugarlabs/musicblocks#8924 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled 未关闭customer-eng status: needs triage
难度 2/5 1-3 小时 新手友好度 84/100