Closed KSneijders closed 5 months ago
You need to add the following configuration inside rollup.config.ts in the .electron-vite folder
@mlmdflr Wow, that's a simple solution! If you don't mind me asking, what's the reason why the library has to be listed here?
I'm asking, because to fix the issue we tried another registry library and that worked without adding it to this list. So, what's the criteria for a library to have to be listed here?
@mlmdflr Wow, that's a simple solution! If you don't mind me asking, what's the reason why the library has to be listed here?
I'm asking, because to fix the issue we tried another registry library and that worked without adding it to this list. So, what's the criteria for a library to have to be listed here?
What's the name of the other library you're using?
@mlmdflr Wow, that's a simple solution! If you don't mind me asking, what's the reason why the library has to be listed here? I'm asking, because to fix the issue we tried another registry library and that worked without adding it to this list. So, what's the criteria for a library to have to be listed here?
What's the name of the other library you're using?
@mlmdflr Wow, that's a simple solution! If you don't mind me asking, what's the reason why the library has to be listed here? I'm asking, because to fix the issue we tried another registry library and that worked without adding it to this list. So, what's the criteria for a library to have to be listed here?
What's the name of the other library you're using?
My English is not very good and I can only explain this with the help of translation tools First of all, the code implementation of these two libraries is not the same, node-winreg is using some windows command line to access the registry through the child_process module. native-reg is a bit more complicated, I don't know much about c++, but I know that native-reg calls win32Api, which is essentially a native module. This scaffolding uses rollup to package the code of the main process, you need to specify the external dependencies, otherwise there will be a series of problems such as paths. The implementation of node-winreg is simple, it only uses a js file, it doesn't need any special processing, you can take a look at the source code, it's a good library.
@mlmdflr Aah, that makes sense.
I'll do some more reading on it. Thank you for taking a look for me! ❤️
When adding
native-reg
to this template I get the following error:This error comes from
native-reg
itself, so I've raised an issue on their end too. The owner of the package said the following:I'm not familiar with this process at all and was wondering if you could help out? I love the template and would love to use it. But this issue is beyond what I know about building node binaries and vite internals.
Thanks in advance!