Skip to content
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

Bug: Can't find rpc.proto #23

Closed
gabmontes opened this issue May 5, 2019 · 7 comments · Fixed by #32
Closed

Bug: Can't find rpc.proto #23

gabmontes opened this issue May 5, 2019 · 7 comments · Fixed by #32
Labels

Comments

@gabmontes
Copy link

gabmontes commented May 5, 2019

On a clean install of version 0.5.0 (using npm), rpc.proto can't be found as it is neither present in the package's root folder nor lnd is installed as a dependency.

Even if lnd is installed as dependency, version 0.0.2 (currently available in npm) is old and the provided rpc.proto will neither work.

A workaround would be to grab the file from GitHub or provide a configuration parameter to specify the path to the file.

@Matt-Jensen
Copy link
Owner

The rpc.proto file can be found in: <my-project-root>/node_modules/lnrpc/node_modules/lnd/lnrpc after you do an npm install.

Are you saying that this project ought to install lnd as a direct dependency of any project that uses it?

@ghost
Copy link

ghost commented Dec 28, 2019

Was having a bit of trouble with this myself. Reproduced in 2 ways:

  1. npm install a 2nd time seemed to remove lnrpc/node_modules
  2. NODE_ENV=production npm start would remove it as well.

Adding lnrpc as a bundledDependency in addition to a dependency stopped npm from removing it in case 1. Edit: Not reliably for some reason. Adding npm explore lnrpc -- npm run postinstall to my own postinstall script help in this case.

However, I couldn't get it from getting removed in case 2.

This was affecting lnrpc in my app being deployed to Heroku, so as a temporary measure I am leaving NODE_ENV in development mode for now - seems to be working. I'm not a javascript / npm pro so I'm not sure what to do from here but that's my insights.

@Matt-Jensen Matt-Jensen reopened this Jan 8, 2020
@Matt-Jensen
Copy link
Owner

Seems related to: shama/napa#81

@Matt-Jensen Matt-Jensen added the bug label Jan 8, 2020
@Matt-Jensen Matt-Jensen changed the title Can't find rpc.proto Bug: Can't find rpc.proto Jan 8, 2020
Matt-Jensen added a commit that referenced this issue Jan 8, 2020
@Matt-Jensen
Copy link
Owner

Just wrote a potential fix here still needs testing, however I'd love any feedback you have.

@ghost
Copy link

ghost commented Jan 8, 2020

Thanks Matt! I can test it out later tonight.

@ghost
Copy link

ghost commented Jan 9, 2020

Worked for me! Deployed to Heroku in production mode and no issues.

Thanks a lot!

@Matt-Jensen
Copy link
Owner

@AnthonyRonning Thanks for looking into that. I'll get this shipped ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants