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
after installing protobufjs npm install protobufjs --save in an angular 2 app i imported "load" from protobuf lib then used it
to load a .proto file the file is in the same folder of the .ts file at first compile for the app with webpack it stops and give me this error :
<ERROR in /ng2-protopuf/node_modules/protobufjs/index.d.ts (1273,46): Cannot find name 'Buffer'.
ERROR in /ng2-protopuf/node_modules/protobufjs/index.d.ts (1300,21): Cannot find name 'Long'.
ERROR in /ng2-protopuf/node_modules/protobufjs/index.d.ts (1308,22): Cannot find name 'Long'.
>
then when i comment the code for protobuf then compile it works and then uncomment and recompile it works with the protobufjs code but the .proto file can't be loaded it gave me a 404 not found error
@dcodeIO i found the solution for this issue on a previous issue here #718
the problem was that i'm new to angular and protobufjs But any way Alhamdullah it was solved by adding these to lines to top of src/main.ts
protobuf.js version: <6.7.3>
after installing protobufjs npm install protobufjs --save in an angular 2 app i imported "load" from protobuf lib then used it
to load a .proto file the file is in the same folder of the .ts file at first compile for the app with webpack it stops and give me this error :
then when i comment the code for protobuf then compile it works and then uncomment and recompile it works with the protobufjs code but the .proto file can't be loaded it gave me a 404 not found error
The text was updated successfully, but these errors were encountered: