benjammin4dayz / neu-react-vite

A template to kickstart your Neutralino.js apps with React, Vite, and optionally TypeScript!
MIT License
2 stars 1 forks source link

Typescript version does not build #6

Open coderguy-21 opened 1 month ago

coderguy-21 commented 1 month ago

After converting to Typescript, the project will not build successfully (neu build) due to multiple Typescript errors in the generated code

benjammin4dayz commented 3 weeks ago

Hey @coderguy-21, thanks for submitting this issue!

I was only able to reproduce one error after a fresh conversion on commit 69134fb. Is this what you were encountering?

src/App.tsx:9:19 - error TS7006: Parameter 'err' implicitly has an 'any' type.
9 const logError = (err) => console.log(err);
                    ~~~
Found 1 error in src/App.tsx:9

This is resolved in commit 1c54fed: promise returning function calls to Neutralino are now voided instead of using a catch handler to prevent floating promises.