Coder Social home page Coder Social logo

Comments (10)

murgatroid99 avatar murgatroid99 commented on June 17, 2024

This seems like some sort of version mismatch issue, because in both cases that path is defined by gRPC. Do you have an error message that you can share? Have you tried uninstalling and reinstalling your node_modules, to see if that fixes it?

from grpc-node.

manu-st avatar manu-st commented on June 17, 2024

I'm getting an error at runtime:

module.js:472 Uncaught Error: Cannot find module 'C:\Dev\client\node_modules\grpc-caller\node_modules\grpc\src\node\extension_binary\electron-v1.7-win32-x64-unknown\grpc_node.node'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (C:\Dev\client\node_modules\electron\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Dev\client\node_modules\grpc-caller\node_modules\grpc\src\grpc_extension.js:30:15)
    at Object.<anonymous> (C:\Dev\client\node_modules\grpc-caller\node_modules\grpc\src\grpc_extension.js:34:3)

from grpc-node.

murgatroid99 avatar murgatroid99 commented on June 17, 2024

What is the contents of C:\Dev\client\node_modules\grpc-caller\node_modules\grpc\src\node\extension_binary\?

from grpc-node.

manu-st avatar manu-st commented on June 17, 2024

The content is made of 2 folders:

  • electron-v1.7-win32-x64-{libc}
  • node-v57-win32-x64-unknown

Before it was just

  • electron-v1.7-win32-x64
  • node-v57-win32-x64

from grpc-node.

murgatroid99 avatar murgatroid99 commented on June 17, 2024

That looks like you're building it from source. How exactly are you building it? What are the installed versions of grpc and node-pre-gyp (you can see this with npm ls)?

For now, I would suggest installing the precompiled electron binary by running npm install --runtime=electron --target=1.7.0.

from grpc-node.

manu-st avatar manu-st commented on June 17, 2024

I'm using yarn instead of npm to compile my project and use electron-builder to build my electron app. Not sure how to translate the npm command in that context.

This fails with version 1.7.2 of grpc and version 0.6.39 of node-pre-gyp.

from grpc-node.

murgatroid99 avatar murgatroid99 commented on June 17, 2024

I'm not sure if it will work the same, but hopefully you can just do the same thing but with yarn install.

from grpc-node.

nicolasnoble avatar nicolasnoble commented on June 17, 2024

Closing stale issues. Also, the supported method for installing gRPC is through the downloading of pre-compiled binaries with npm install and node-pre-gyp. Supporting all edge cases is impossible for us. We're happy to help debugging and troubleshooting issues, but we need more active communication for this.

from grpc-node.

yovanoc avatar yovanoc commented on June 17, 2024

Related or not? -> electron-userland/electron-builder#3049

from grpc-node.

nicolasnoble avatar nicolasnoble commented on June 17, 2024

Please don't bump older issues like this. Also, please read our recent information on Electron. https://github.com/grpc/grpc-node/tree/master/packages/grpc-native-core

from grpc-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.