Closed CM-IV closed 6 months ago
Hello There ! I encountered this error today.
After a bit experimenting with neutralino.config.json
file, I've finally found cause this problem.
This error occurs when there is no clientLibrary
field in neutralino.config.json
. be sure to set this field, it should be pointing to the client library's path.
I'm using my own client library and don't need neutralino to add it the source code again. so, in this case, i'm just using an empty JS file.
Hello! maybe neutralino.config.json problem.
i lost this, neutralino.config.json > modes > window > icon
.
You can refer to this document 👉 neutralino.config.json from web-to-desktop-framework-comparison
This issue was fixed by https://github.com/neutralinojs/neutralinojs-cli/commit/39c925ab0593c5cf2f3b6ec6dc4c49de539ec7d1 We'll release these changes with the upcoming release :tada:
The Problem
I am running into an error when trying to build a GUI app that makes use of Preact Typescript and uses the Vitejs bundler on the frontend.
This error does not really tell me much, and the
neutralinojs.log
file does not show a relevant ERROR either.A temp folder is generated after building that holds the resources dir and the neu.config.json file:
Inside of my frontend
package.json
, I am copying over the built files into theresources
dir:This is what the inside of my index.html file looks like:
I was able to use the neu cli to create the minimal project and build it successfully that way, which is why there is a
dist
directory at the top level.The GUI is able to hot reload properly with the help of Vitejs, but I cannot figure out this one issue that prevents me from building.