tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.31k stars 243 forks source link

X64 Mac users are getting "Error: Cannot find module '@libsql/darwin-x64'" #1474

Open rathboma opened 2 months ago

rathboma commented 2 months ago

Hi folks,

I'm bundling LibSQL inside Beekeeper Studio. It works fine on Mac M1, Linux, Windows, but does NOT seem to work on Intel Macs. Here's my user report

All my other native modules work, but for some reason @libsql/darwin-x64 is not getting bundled.

Seems like someone else had this issue in the past but it was not officially resolved.

Hoping you can direct me to the right way to fix this? I don't really know what else to do tbh.

rathboma commented 2 months ago

Did something change after 0.3.4?

penberg commented 2 months ago

@rathboma The package does exist and is up-to-date: https://www.npmjs.com/package/@libsql/darwin-x64?activeTab=versions There's nothing specific about the Darwin/x64 build either... 🤔

rathboma commented 2 months ago

Hey, I did some tests and it might be an electron-builder quirk, not sure. This is the deal:

Could it be that darwin-x64 is only installed when running on an intel mac, vs any mac?

HameArm commented 2 months ago

Did you build the previous version differently? That was working fine..

rathboma commented 2 months ago

@HameArm the previous version didn't include LibSQL. This is a new problem exclusively on LibSQL.

@penberg Can you point me to where @libsql/darwin-x64 gets used? Maybe I need to explicitly include it or something?

To be clear -- this is an issue for any electron developer looking to create universal mac builds, or create an x64 build on an M1 chip (which is now the recommended way)

dannextlogic commented 3 weeks ago

It's August 12 and still getting this error, had to revert to v0.3.4. Any updates?