Comments (2)
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.
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)
- Cannot use alternative CXX Library with Electron v20+
- extraResources does not work as expected, nothing is copied HOT 1
- How can I tell electron-rebuild to ignore my library? HOT 4
- How to rebuild .node file without existing in a node_module?
- Error related to `.forge-meta` file HOT 1
- GCC_PREFIX_HEADER & GCC_PRECOMPILE_PREFIX_HEADER incompatible with Electron 20
- error rebuild canvas on Windows HOT 3
- Rebuilding node-canvas with electron-rebuild fails HOT 4
- Could not detect abi for version 22.3.3 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron at getAbi HOT 8
- no file node_modules/.bin/electron-rebuild in 3.2.11 HOT 1
- Error when rebuilding node-java package HOT 1
- Python 2 died 1,259 days ago on 1/1/2020. Why still use it? HOT 1
- Cross Compile on Linux
- Help using rebuild to package node-sqlite3 to use with Electron HOT 2
- ERR_REQUIRE_ESM HOT 1
- Follow OS conventions for storing cache
- need to upgrade node-gyp HOT 6
- Complains for deprecated move-file
- @electron/rebuild ignores symlinks for native modules, which crashes the application HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rebuild.