lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.53k stars 1.47k forks source link

getting splah.html not found error during build #6045

Closed safayildirim closed 2 years ago

safayildirim commented 2 years ago

Describe the bug I want to get build in windows 10 machine. I cloned the repository and run "make build" on gitbash shell but I got following error. Logs are at bottom section.

To Reproduce Steps to reproduce the behavior:

  1. Go to root directory of repo.
  2. Run 'make build' command on gitbash shell.
  3. Go dist/ directory and install created build.
  4. Run installed app

Expected behavior There shouldnt be any error and application should open.

Screenshots Image

Environment (please complete the following information):

Logs: When you run the application executable from command line you will see some logging output. Please paste them here:

(node:7080) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `OpenLens --trace-deprecation ...` to show where the warning was created)
info:    Γû¬ [USER-STORE]: LOADING from  ... +0ms
info:    Γû¬ [USER-STORE]: LOADED from C:\Users\SAFA\AppData\Roaming\OpenLensDev\lens-user-store.json +66ms
info:    Γû¬ [CLUSTER-STORE]: LOADING from  ... +1ms
Running 6.0.0-latest.1660718195760.1660739551179 migration for C:\Users\SAFA\AppData\Roaming\OpenLensDev\lens-cluster-store.json
info:    Γû¬ [CLUSTER-STORE]: LOADED from C:\Users\SAFA\AppData\Roaming\OpenLensDev\lens-cluster-store.json +47ms
info:    ▪ 🔌 Starting LensProxy +8ms
info:    Γû¬ [LENS-PROXY]: Proxy server has started at 127.0.0.1:63971 +3s
info:    ▪ 🔎 Testing LensProxy connection ... +2ms
info:    Γû¬ ΓÜí LensProxy connection OK +19ms
info:    Γû¬ [CREATE-ELECTRON-WINDOW]: Loading content for window "splash" from file: C:\Users\SAFA\AppData\Local\Programs\OpenLens\static\splash.html... +31ms
error:   ΓöÅ [CREATE-ELECTRON-WINDOW]: Failed to load window "splash" +366ms
error:   Γöù [1] { code: -6, desc: 'ERR_FILE_NOT_FOUND' }
(node:7080) electron: Failed to load URL: file:///C:/Users/SAFA/AppData/Local/Programs/OpenLens/static/splash.html with error: ERR_FILE_NOT_FOUND
(node:7080) UnhandledPromiseRejectionWarning: Error: ERR_FILE_NOT_FOUND (-6) loading 'file:///C:/Users/SAFA/AppData/Local/Programs/OpenLens/static/splash.html'
    at rejectAndCleanup (node:electron/js2c/browser_init:161:7647)
    at EventEmitter.failListener (node:electron/js2c/browser_init:161:7860)
    at EventEmitter.emit (node:events:538:35)
    at EventEmitter.emit (node:domain:475:12)
(node:7080) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
[7080:0817/214414.070:ERROR:interface_endpoint_client.cc(665)] Message 6 rejected by interface blink.mojom.WidgetHost
[7080:0817/214414.070:ERROR:interface_endpoint_client.cc(665)] Message 7 rejected by interface blink.mojom.WidgetHost
info:    Γû¬ [CREATE-ELECTRON-WINDOW]: Window "splash" loaded +66ms
safayildirim commented 2 years ago

I finally managed to build. So here the solution incase of someone else has same problem. In package.json file change the line compile script as "set NODE_ENV=production&& concurrently yarn:compile:*"