Skip to content

调用mouseLocaion时出错了 #11

@kawais

Description

@kawais

安装了后获取鼠标位置

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions