Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调用mouseLocaion时出错了 #11

Open
kawais opened this issue Dec 23, 2024 · 0 comments
Open

调用mouseLocaion时出错了 #11

kawais opened this issue Dec 23, 2024 · 0 comments

Comments

@kawais
Copy link

kawais commented Dec 23, 2024

安装了后获取鼠标位置

import { mouseLocaion } from 'rubick-native';
setInterval(() => {
  console.log(mouseLocaion());
}, 3000);

然后运行electron:serve,出现错误

 Bundling main process...

 ERROR  Failed to compile with 1 error                                         6:56:55 PM

 error  in ./node_modules/@miniben90/x-win-win32-x64-msvc/x-win.win32-x64-msvc.node      

Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant