-
Notifications
You must be signed in to change notification settings - Fork 86
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
electron-rebuild: failed to rebuild node_modules/@hyperswarm/dht/node_modules/sodium-native #70
Comments
@raphael10-collab is the sodium prebuild not working for you? normally you'd never rebuild sodium |
Hi @mafintosh ! The problem comes from here:
This is why I tried to use electron-rebuild. |
That looks like a pretty old version of sodium, can you check somehow? |
Sorry for the question... how to check the version of the sodium lib? |
You can see the path in the problem you posted here #70 (comment), ie /home/marco/webMatters/electronMatters/GGC/node_modules/sodium-native/package.json |
But I see now also that, that dep was rebuilt as well. In general don't rebuild sodium, utp-native or any of the prebuilds we ship. It'll create a lot more problems like this with interop than if you don't :) |
/home/marco/webMatters/electronMatters/GGC/node_modules/sodium-native/package.json :
Do you think that upgrading sodium-native to the latest version would solve the problem, or should I only re-install hyperswarm? |
Yes, very likely
… On 2 Dec 2020, at 20.37, raphael10-collab ***@***.***> wrote:
/home/marco/webMatters/electronMatters/GGC/node_modules/sodium-native/package.json :
"version": "2.4.9"
Do you think that upgrading sodium-native to the latest version would solve the problem?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Now /home/marco/webMatters/electronMatters/GGC/node_modules/sodium-native/package.json :
Still get:
I removed node_modules folder and yarn.lock file. |
Could it be that you updated |
Latest noise-protocol uses latest sodium also. All of the hyper* deps are on sodium 3. |
But since you have a build folder inside sodium above, something is still rebuilding. Did you clean out all your deps and reinstalled? You sure nothing is compiling or that you aren't recompiling anything? When you recompile you loose the cross node/electron compat that the prebuilds give you. |
This is the complete list of dependencies obtained through From the complete list of dependencies I see that sodium is version 3.something in these packages: But it is version 2.something as dependency in other packages: So...should I remove the sodium dependency of each package if it is version 2.something, and re-install it @latest or should I do something else? |
What's pulling in those deps with version 2? Nothing in our stack should be doing that. |
Sorry Mathias. May be to my lack of knowledge, I do not understand. |
@raphael10-collab no problem, let me try to be a bit more clear. Some parent dep in your dependency tree in your project is pulling in a legacy dep that uses sodium 2. For me to easier help you i need to know what parent dep that is. Could you post the output of npm ls from your project? Then I can take a look :) |
@mafintosh this is the complete dependencies tree: |
I think that list is deduped, but I think hypermerge in there needs a hypercore major bump. We should make an issue for that on that repo. You are using that one yea? |
I now redone the same list with this command: yarn list > yarnList.txt : Yes, I'm using hypercore. |
It's not hypercore, Hypercore is using latest sodium. It's the dep that's using an old version of Hypercore that needs to be bumped to use latest Hypercore, among those is Hypermerge (which we don't maintain) |
@mafintosh I just made an issue in Hypermerge's GitHub page about the version of Hypercore used: automerge/hypermerge#88 |
In my electron-react-typescript project I added hyperswarm:
When electron-rebuild-ing :
Other info:
How to solve the problem?
The text was updated successfully, but these errors were encountered: