You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a lot of struggling, we got our NeutralinoJS + Vite app running. I honestly don't think most newbies will survive the out of date / erroneous docs.
This does not work -- no error, just hangs
const result = await window.Neutralino.filesystem.writeFile(
'/home/ubuntu/test.txt',
'my file content'
)
This works:
import { filesystem } from "@neutralinojs/lib"
const result = await filesystem.writeFile(
'/home/ubuntu/test.txt',
'my file content'
)
The text was updated successfully, but these errors were encountered:
Fair point on the docs— it's definitely frustrating to deal with potentially misleading info while connecting the missing dots.
For context, when using a package manager to handle Neutralino's client library, window.Neutralino is undefined unless the project is explicitly importing the Neutralino module and assigning it as a property to the window object, like this:
This is in contrast to a "vanilla" Neutralinojs project with no frontend library, where the client library is included as a script tag inside the HTML and made available on the global window object.
Perhaps the distinction between the two modes needs to be made clearer?
i know this. the documentation for this project is something i can't even find a good adjective for. i'm having my fair share of trouble working with the filesystem api, and this is what i found on stack overflow. i still haven't solved the problem i was facing, so i don't know if this was a valid solution, but nevertheless.
After a lot of struggling, we got our NeutralinoJS + Vite app running. I honestly don't think most newbies will survive the out of date / erroneous docs.
This does not work -- no error, just hangs
This works:
The text was updated successfully, but these errors were encountered: