Posts by Fucazu • 111 points
4 posts
-
0
votes2
answers70
viewsA: Passport-local / I don’t understand the structure of the function
This second parenthesis functions as a callback of the Passport authentication function. Passport will do the validations and then use what is being passed in the second parentheses to continue…
-
0
votes1
answer679
viewsA: path must be a string or Buffer in the console: Node.js (Electron)
The error occurs because the command fs.writeFile(fileName, data, (err) => { needs that fileName is a valid path, in case the action is being canceled, does not pass a valid path. You can prevent…
-
1
votes2
answers308
viewsA: Error with Electron + Serialport to use Arduino
This is caused because the module does not come with the required files compiled by default... Delete files from folder node_modules/serialport/build/Release Then run the following command in the…
-
0
votes8
answers7407
viewsA: What better way to work offline and synchronize data with server?
Regarding the first question, another database alternative is the db4o. It is object-oriented, despite the somewhat weak documentation, it is much faster and more practical to use than relational…