Comments (6)
You need to add the following configuration inside rollup.config.ts in the .electron-vite folder
from electron-vite-template.
@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.
from electron-vite-template.
@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?
from electron-vite-template.
@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?
from electron-vite-template.
@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?
https://github.com/fresc81/node-winreg
from electron-vite-template.
@mlmdflr Aah, that makes sense.
I'll do some more reading on it. Thank you for taking a look for me! ❤️
from electron-vite-template.
Related Issues (20)
- Cannot use import statement outside a module HOT 4
- 建议加一个JSX或者使用TSX;SCSS或者LESS的选项 HOT 1
- Error: Cannot find module 'rollup' HOT 1
- preload.js 怎么构建出来? HOT 1
- 通过A链接或是window.open()创建的窗口,父子间如何通信? HOT 1
- 没有开发文档吗 HOT 6
- 目前遇到了两个问题 HOT 9
- 打包后的node_modules比较大 HOT 1
- bug HOT 1
- 新上的 Tray 有问题
- 打包后无法启动项目;
- windows build生成的安装包安装过程很慢 HOT 2
- strict 分支,npm run build:web 构建之后的产物还是依赖 electron HOT 4
- 如何定位打包之后的问题? HOT 1
- 可以问下如何在安装的时候执行一段代码吗,比如说杀死某些进程 HOT 1
- tsconfig.json vscode编辑器报错 HOT 1
- ffi-napi HOT 2
- 打包后字体图标不生效问题 HOT 6
- Update `BlackHole1/electron-devtools-vendor` to use v3.0.0 to support Manifest V3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-vite-template.