Giter VIP home page Giter VIP logo

Comments (2)

spamshaker avatar spamshaker commented on June 30, 2024 1

it doesn't work with @electron/rebuild. I have similar issue with sqlite3 package
I am using pnpm and when I add electron-rebuild package (legacy)

pnpm electron-rebuild --force -m node_modules/sqlite3
then I can see: and all is fine
⠇ Building module: sqlite3, Completed: 0 CC(target) Release/obj.target/nothing/../../../[email protected]/node_modules/node-addon-api/nothing.o
LIBTOOL-STATIC Release/nothing.a
⠏ Building module: sqlite3, Completed: 0warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols)
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3410100/sqlite3.c
⠋ Building module: sqlite3, Completed: 0 TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3410100/sqlite3.o
⠴ Building module: sqlite3, Completed: 0 LIBTOOL-STATIC Release/sqlite3.a
⠦ Building module: sqlite3, Completed: 0 CXX(target) Release/obj.target/node_sqlite3/src/backup.o

but when i install @electron/rebuild then I can see which is obviously fail cause nothing has been rebuilt

pnpm electron-rebuild --force -m node_modules/sqlite3
✔ Rebuild Complete

I ran it also with DEBUG=* so that I can see

electron-rebuild failed to read module arch: ENOENT: no such file or directory, stat '/p/.pnpm/[email protected]/node_modules/sqlite3/lib/binding/napi-v3-darwin-unknown-arm64/node_sqlite3.node' +1ms
read-binary-file-arch file command output /p/node_modules/.pnpm/[email protected]/node_modules/sqlite3/lib/binding/napi-v6-darwin-unknown-arm64/node_sqlite3.node: Mach-O 64-bit bundle arm64 +0ms
read-binary-file-arch result: Mach-O 64-bit bundle arm64 +0ms
read-binary-file-arch archMatch: arm64 +0ms
electron-rebuild module arch: arm64 +4ms

from rebuild.

sibelius avatar sibelius commented on June 30, 2024

it looks like it does not work for @woovi named scope packages

DEBUG=* yarn electron-rebuild --force -m node_modules/@woovi/node-printer

works

from rebuild.

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.