Protocol based url reading inside electorn
Can any one help me on this. I have an electorn application, and i have created the custom protocol named essc. From any browser(chrome,firefox, etc) if i browser like essc://www.electronjs.org/. That url need to open electron application first and remaining part of (URL www.electronjs.org/) need to bind in electron browser frame. Can this be achieved?
Bonjour j’essaie de d’executer le build de mon app electron et react mais j’aobtien cette erreur pouvez vous m’aider c’est urgent svp
• rebuilding native dependencies [email protected] platform=win32 arch=x64
⨯ cannot execute cause=exit status 1
errorOut=npm ERR! code 1
npm ERR! path C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvas
npm ERR! command failed
npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c node-pre-gyp install –fallback-to-build –update-binary
npm ERR! Les projets sont g�n�r�s individuellement dans cette solution. Pour activer la g�n�ration en parall�le, ajoutez le commutateur
“-m”.
npm ERR! Copying C:/libjpeg-turbo64/bin/jpeg62.dll to C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildRelease
npm ERR! 1 fichier(s) copi�(s).
npm ERR! Backend.cc
npm ERR! C:UserspythagoreDesktopboutique projetreactviergenode_modulesnannan.h(688,37): warning C4996: ‘v8::Isolate::IdleNotificationDeadline’: Use MemoryPressureNotification() to influence the GC schedule. [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! C:UserspythagoreDesktopboutique projetreactviergenode_modulesnannan.h(2548,6): error C2664: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)’�: impossible de convertir l’argument 2 de ‘Nan::imp::NativeGetter’ en ‘v8::AccessorGetterCallback’ [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! C:UserspythagoreDesktopboutique projetreactviergenode_modulesnannan.h(2550,7): message : Cette conversion n�cessite un
reinterpret_cast, un cast de style C ou un cast de style fonction entre parenth�ses. [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! C:Userspythagore.electron-gyp28.2.9includenodev8-template.h(809,8): message : voir la d�claration de ‘v8::ObjectTemplate::SetAccessor’ [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! C:UserspythagoreDesktopboutique projetreactviergenode_modulesnannan.h(2596,6): error C2664: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)’�: impossible de convertir l’argument 2 de ‘Nan::imp::NativeGetter’ en ‘v8::AccessorGetterCallback’ [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! C:UserspythagoreDesktopboutique projetreactviergenode_modulesnannan.h(2598,7): message : Cette conversion n�cessite un
reinterpret_cast, un cast de style C ou un cast de style fonction entre parenth�ses. [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! C:Userspythagore.electron-gyp28.2.9includenodev8-template.h(809,8): message : voir la d�claration de ‘v8::ObjectTemplate::SetAccessor’ [C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildcanvas.vcxproj]
npm ERR! Failed to execute ‘C:Program Filesnodejsnode.exe C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build –fallback-to-build –update-binary –module=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildReleasecanvas.node –module_name=canvas –module_path=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildRelease –napi_version=9 –node_abi_napi=napi –napi_build_version=0 –node_napi_label=electron-v28.2’ (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | win32 | x64
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-electron-v28.2-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-electron-v28.2-win32-unknown-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (electron-v28.2 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-electron-v28.2-win32-unknown-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.6 found at “C:UserspythagoreAppDataLocalProgramsPythonPython39-32python.exe”
npm ERR! gyp info find VS using VS2022 (17.3.32519.111) found at:
npm ERR! gyp info find VS “C:Program FilesMicrosoft Visual Studio2022Preview”
npm ERR! gyp info find VS run with –verbose for detailed information
npm ERR! gyp info spawn C:UserspythagoreAppDataLocalProgramsPythonPython39-32python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypgypgyp_main.py’, npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘msvs’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildconfig.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypaddon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘C:Userspythagore.electron-gyp28.2.9includenodecommon.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=C:Userspythagore.electron-gyp28.2.9’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=C:\Users\pythagore\.electron-gyp\28.2.9\<(target_arch)\node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvas’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuild’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info spawn C:Program FilesMicrosoft Visual Studio2022PreviewMSBuildCurrentBinMSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘buildbinding.sln’,
npm ERR! gyp info spawn args ‘/clp:Verbosity=minimal’,
npm ERR! gyp info spawn args ‘/nologo’,
npm ERR! gyp info spawn args ‘/p:Configuration=Release;Platform=x64’
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:Program FilesMicrosoft Visual Studio2022PreviewMSBuildCurrentBinMSBuild.exe
failed with exit
code: 1
npm ERR! gyp ERR! stack at ChildProcess. (C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gyplibbuild.js:209:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command “C:Program Filesnodejsnode.exe” “C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js” “build” “–fallback-to-build” “–update-binary” “–module=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildReleasecanvas.node” “–module_name=canvas” “–module_path=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildRelease” “–napi_version=9” “–node_abi_napi=napi” “–napi_build_version=0” “–node_napi_label=electron-v28.2”
npm ERR! gyp ERR! cwd C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvas
npm ERR! gyp ERR! node -v v20.12.2
npm ERR! gyp ERR! node-gyp -v v10.1.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute ‘C:Program Filesnodejsnode.exe C:UserspythagoreAppDataRoamingnpmnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build –fallback-to-build –update-binary –module=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildReleasecanvas.node –module_name=canvas –module_path=C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvasbuildRelease –napi_version=9 –node_abi_napi=napi –napi_build_version=0 –node_napi_label=electron-v28.2’ (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (C:UserspythagoreDesktopboutique projetreactviergenode_modules@mapboxnode-pre-gyplibutilcompile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19045
npm ERR! node-pre-gyp ERR! command “C:Program Filesnodejsnode.exe” “C:UserspythagoreDesktopboutique projetreactviergenode_modules@mapboxnode-pre-gypbinnode-pre-gyp” “install” “–fallback-to-build” “–update-binary”
npm ERR! node-pre-gyp ERR! cwd C:UserspythagoreDesktopboutique projetreactviergenode_modulescanvas
npm ERR! node-pre-gyp ERR! node -v v20.12.2
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm ERR! node-pre-gyp ERR! not ok
Electron module not being received
I’m learning electronjs and I’m trying to make a window that creates another window through a button, but when I was testing I noticed that one.js is not importing correctly the remote module. Heres the main.js file: