Open mgsmyth opened 1 month ago
Checking back to see if there are updates about running the code in this repo
Hi @mgsmyth,
Unfortunately, I have not been able to replicate the same error on my machine, but we will try to find a solution that will fix the problem that you have.
When you will be building the app next time with npm install
, please try to run this command instead npm install --legacy-peer-deps
.
Let me know if this will fix the issue :)
Thanks @dbosnjak94. I got a different error output with --legacy-peer-deps
(pasted below):
npm warn deprecated @near-wallet-selector/default-wallets@8.1.4: Package no longer supported. The package no longer holds a list of default wallets please install specific wallet packages from https://www.npmjs.com/org/near-wallet-selector
npm error code 1
npm error path /Users/meghan/Workspace/raidar/raidar-frontend/node_modules/better-sqlite3
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild --release
npm error TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm error ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm error TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm error CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm error LIBTOOL-STATIC Release/sqlite3.a
npm error CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
npm error rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm error prebuild-install warn install No prebuilt binaries found (target=22.0.0 runtime=node arch=x64 libc= platform=darwin)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@22.0.0 | darwin | x64
npm error gyp info find Python using Python version 3.9.18 found at "/Users/meghan/opt/anaconda3/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v22.0.0/node-v22.0.0-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v22.0.0/node-v22.0.0-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v22.0.0/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v22.0.0/SHASUMS256.txt
npm error gyp info spawn /Users/meghan/opt/anaconda3/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/meghan/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/meghan/Workspace/raidar/raidar-frontend/node_modules/better-sqlite3/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/meghan/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/meghan/Library/Caches/node-gyp/22.0.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/meghan/Library/Caches/node-gyp/22.0.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/meghan/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/meghan/Library/Caches/node-gyp/22.0.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/meghan/Workspace/raidar/raidar-frontend/node_modules/better-sqlite3',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ./src/util/macros.lzz:150:35: error: no matching member function for call to 'SetAccessor'
npm error recv->InstanceTemplate()->SetAccessor(
npm error ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
npm error /Users/meghan/Library/Caches/node-gyp/22.0.0/include/node/v8-template.h:1049:8: note: candidate function not viable: no known conversion from 'v8::AccessControl' to 'PropertyAttribute' for 5th argument
npm error void SetAccessor(
npm error ^
npm error /Users/meghan/Library/Caches/node-gyp/22.0.0/include/node/v8-template.h:1055:8: note: candidate function not viable: no known conversion from 'v8::AccessorGetterCallback' (aka 'void (*)(Local<String>, const PropertyCallbackInfo<Value> &)') to 'AccessorNameGetterCallback' (aka 'void (*)(Local<Name>, const PropertyCallbackInfo<Value> &)') for 2nd argument
npm error void SetAccessor(
npm error ^
npm error ./src/objects/database.lzz:180:21: warning: variable 'status' set but not used [-Wunused-but-set-variable]
npm error int status = sqlite3_db_config(db_handle, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1, NULL);
npm error ^
npm error 1 warning and 1 error generated.
npm error make: *** [Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/Users/meghan/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Darwin 23.2.0
npm error gyp ERR! command "/Users/meghan/.nvm/versions/node/v22.0.0/bin/node" "/Users/meghan/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
npm error gyp ERR! cwd /Users/meghan/Workspace/raidar/raidar-frontend/node_modules/better-sqlite3
npm error gyp ERR! node -v v22.0.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/meghan/.npm/_logs/2024-06-03T16_34_40_437Z-debug-0.log
I will need to dwell deeper into this issue, and will get back at you with the new solution!
Here's the output from my console: