in Education by
I have a very peculiar issue, I have a Neutralino app built with Preact that runs perfectly fine when run with neu run, however, once I build the project (with enableServer on or off), the built application will not load anything. With enableServer on, it will complain that it cannot connect to localhost: "This localhost page cannot be found" and with it off it gives me a completely white screen/DOM. The GitHub repository is here: https://github.com/SpikeHD/XeniaLauncher I suspect it may be the way I am building the project, but I find it weird that neu run works completely fine. Below is my configuration: { "applicationId": "js.xenia_launcher.app", "version": "1.0.0", "defaultMode": "window", "port": 0, "documentRoot": "/build/", "url": "/", "enableServer": true, "enableNativeAPI": true, "tokenSecurity": "one-time", "logging": { "enabled": true, "writeToLogFile": true }, "nativeAllowList": [ "app.*", "os.*", "filesystem.*", "storage.*", "window.*", "debug.log" ], "modes": { "window": { "title": "XeniaLauncher", "width": 1000, "height": 800, "minWidth": 400, "minHeight": 200, "fullScreen": false, "alwaysOnTop": false, "icon": "/resources/icons/appIcon.png", "enableInspector": true, "borderless": false, "maximize": false, "hidden": false, "resizable": true, "exitProcessOnClose": true }, "browser": {}, "cloud": { "url": "/resources/#cloud", "nativeAllowList": [ "app.*" ] }, "chrome": { "width": 1000, "height": 800, "args": "--user-agent=\"Neutralinojs chrome mode\"" } }, "cli": { "binaryName": "XeniaLauncher", "resourcesPath": "/resources/", "extensionsPath": "/extensions/", "clientLibrary": "/resources/js/neutralino.js", "binaryVersion": "4.4.0", "clientVersion": "3.3.0" } } JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Fixed it! I ended up just setting up some scripts that will put all the built Preact code into the resources folder and re-setup my config to only use the resources folder, like the original Neutralino template. I am sure there could have been a more elegant way, but I am still just learning Neutralino and Preact so this works perfectly well enough for me.

Related questions

0 votes
    I'm trying to use the mail() function on my computer so I can test the web application's system ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 30, 2022 in Education by JackTerrance
0 votes
    So I have a Nginx running inside a docker container, I have a mysql running on the host system, I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    i have online Wordpress blog, now i copied my blog to localhost to change the design. I replaced http ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    A couple months ago I did a project in C++ with Visual Studio that I needed pthreads for, so I ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    During a long compilation with Visual Studio 2005 (version 8.0.50727.762), I sometimes get the following ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    During a long compilation with Visual Studio 2005 (version 8.0.50727.762), I sometimes get the following ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    I am facing an error after performing this syntax: This is the error: Error in file(file, "rt") : cannot ... No such file or directory Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    i am trying to run a phtread program in visual studio 2010. in this code there is "sys/times.h", ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    I am creating an Android app that will download and cache PDF files (the files are for issues of ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    You are working with this XML code snippet from the XML document cars.xml. You need to return the information about the cars ... D.doc("cars.xml")/cars/car[integer(year) > 2000]...
asked Mar 10, 2023 in Technology by JackTerrance
0 votes
    Software built as microservices can, by definition, be broken down into multiple component services. A. True B. False...
asked Jan 9, 2023 in Technology by JackTerrance
0 votes
    Which of the following functions is a built-in function in python? a) factorial() b) print() c) seed() d) sqrt()...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    I am trying to use ES2017 async/await syntax with Babel. In package.json, I have "babel": { " ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 14, 2022 in Education by JackTerrance
0 votes
    I am trying to use ES2017 async/await syntax with Babel. In package.json, I have "babel": { " ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 8, 2022 in Education by JackTerrance
...