stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

failed in react-snap puppeteer module. #513

Open gamer-1478 opened 3 years ago

gamer-1478 commented 3 years ago

Bug Report

Current Behavior A clear and concise description of the behavior. Screenshot (131)

Reproducible demo i am really sorry sir but i do not know how to reproduce it, i am still a beginner in reactjs but not in java, so i did some search and it may be a puppeteering module problem.

Expected behavior/code i think my website should deploy, but it is giving an error in compilation.

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain. it happened when i added, firebase code in my website, i don't know how to fix, it. i didn't change anything else, nor created any more files.

i just ran npm run deploy in cmd.

my debug.log file:-

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'P:\Program Files\nodejs\node.exe', 1 verbose cli 'P:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'deploy' 1 verbose cli ] 2 info using npm@6.14.9 3 info using node@v15.2.1 4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ] 5 info lifecycle website@0.1.0~predeploy: website@0.1.0 6 verbose lifecycle website@0.1.0~predeploy: unsafe-perm in lifecycle true 7 verbose lifecycle website@0.1.0~predeploy: PATH: P:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;P:\website\website\node_modules.bin;C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\Program Files\Python39\Scripts\;C:\Program Files\Python39\;C:\Users\aayus\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\aayus\AppData\Local\Programs\Python\Python36-32\;C:\Python38\Scripts\;C:\Python38\;P:\Program Files\Python36\Scripts\;P:\Program Files\Python36\;D:\python\Scripts\;D:\python\;C:\Users\aayus\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\aayus\AppData\Local\Programs\Python\Python38-32\;C:\Users\aayus\AppData\Local\Programs\Python\Python36;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\aayus\AppData\Local\Programs\Python\Python36\scripts;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\CUPTI\libx64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\tools;D:\the ai guy\cmake-3.17.1-win64-x64\bin;D:\Program Files\CMake\bin;C:\Program Files (x86)\ZED SDK\dependencies\freeglut_2.8\x64;C:\Program Files (x86)\ZED SDK\dependencies\glew-1.12.0\x64;C:\Program Files (x86)\ZED SDK\dependencies\opencv_3.1.0\x64;C:\Program Files (x86)\ZED SDK\bin;C:\Users\aayus\win-install;C:\Users\aayus\win-install\x64\vc16\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2020.2.0\;P:\Program Files\Git\cmd;P:\Program Files\nodejs\;P:\Program Files (x86)\Yarn\bin\;P:\Program Files\PuTTY\;C:\Users\aayus\AppData\Local\Microsoft\WindowsApps;C:\Users\aayus\AppData\Local\Programs\Python\Python36\Scripts;p:\Programs\Microsoft VS Code\bin;P:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2\bin;P:\flutter\bin;C:\Users\aayus.dotnet\tools;C:\Users\aayus\AppData\Roaming\npm;C:\Users\aayus\AppData\Local\Yarn\bin 8 verbose lifecycle website@0.1.0~predeploy: CWD: P:\website\website 9 silly lifecycle website@0.1.0~predeploy: Args: [ '/d /s /c', 'npm run build' ] 10 silly lifecycle website@0.1.0~predeploy: Returned: code: 1 signal: null 11 info lifecycle website@0.1.0~predeploy: Failed to exec predeploy script 12 verbose stack Error: website@0.1.0 predeploy: npm run build 12 verbose stack Exit status 1 12 verbose stack at EventEmitter. (P:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16) 12 verbose stack at EventEmitter.emit (node:events:329:20) 12 verbose stack at ChildProcess. (P:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 12 verbose stack at ChildProcess.emit (node:events:329:20) 12 verbose stack at maybeClose (node:internal/child_process:1055:16) 12 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5) 13 verbose pkgid website@0.1.0 14 verbose cwd P:\website\website 15 verbose Windows_NT 10.0.19042 16 verbose argv "P:\Program Files\nodejs\node.exe" "P:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "deploy" 17 verbose node v15.2.1 18 verbose npm v6.14.9 19 error code ELIFECYCLE 20 error errno 1 21 error website@0.1.0 predeploy: npm run build 21 error Exit status 1 22 error Failed at the website@0.1.0 predeploy script. 22 error This is probably not a problem with npm. There is likely additional logging output above. 23 verbose exit [ 1, true ]