lmdb-js icon indicating copy to clipboard operation
lmdb-js copied to clipboard

No native build was found for platform=linux arch=x64 runtime=electron

Open KaKi87 opened this issue 2 years ago • 10 comments

Hello,

I was told to report the following issue here : parcel-bundler/parcel#7666

Thanks

KaKi87 avatar Jun 20 '22 14:06 KaKi87

I tried running your repo https://git.kaki87.net/KaKi87/template-electron17-vue3-parcel2 on my linux mint box, which seems to be configured almost identically to the versions you described in the parcel ticket, and parcel/lmdb seemed to run fine without issue. I tried this with [email protected] ([email protected]) and latest parcel (2.6.1 with [email protected]). Do you have any ideas what could be different?

kriszyp avatar Jun 21 '22 03:06 kriszyp

I reported this issue 4 months ago and had time to workaround it, but I'd stil prefer a proper fix, you may reproduce the issue by checking out the issue/lmdb-js_182 branch.

Thanks

tianalemesle avatar Jun 21 '22 07:06 tianalemesle

Ok, thank you, I actually am able to reproduce an error, but it is different error than the original parcel ticket. The error is missing symbols (mangled C++ symbol names) when loading the library (at least using the latest lmdb version). I do know how to fix this error (this is due to electron apparently using a different shared library loading setting than node).

kriszyp avatar Jun 21 '22 11:06 kriszyp

I have put in a fix for missing symbols in v2.5.3. Let me know if it helps.

kriszyp avatar Jun 24 '22 12:06 kriszyp

What's the proper way to try this, since I don't directly use this module ? Thanks

KaKi87 avatar Jun 24 '22 12:06 KaKi87

In your package.json, in NPM 8: "overrrides": { "lmdb": "2.5.3" },

Yarn: "resolutions": { "lmdb": "2.5.3" },

Older NPM, no "proper" way, just have to manually replace the directory in node_modules.

kriszyp avatar Jun 24 '22 12:06 kriszyp

I use yarn btw :joy:

KaKi87 avatar Jun 24 '22 12:06 KaKi87

"overrrides": { "lmdb": "2.5.3" },

Typo... overrrides too many rs, should be overrides

mountainash avatar Jul 27 '22 16:07 mountainash

Does overrides fix the problem?

astagi avatar Nov 15 '22 09:11 astagi

Ok, tried overrides after a failed build on Vercel, it fixes the problem

  "overrides": { 
    "lmdb": "2.6.0" 
  }

@kriszyp I think we can close this issue.

astagi avatar Nov 15 '22 14:11 astagi