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

Is there anyway to use this library in Nextjs app #753

Open
TanachaiAnakewat opened this issue Jan 27, 2024 · 0 comments
Open

Is there anyway to use this library in Nextjs app #753

TanachaiAnakewat opened this issue Jan 27, 2024 · 0 comments

Comments

@TanachaiAnakewat
Copy link

I have a next js web application that when a button is pressed, it will trigger a mouse to move to a different window and paste the clipboard data in multiple input fields.

However, when I was trying to npm install this library and run the code, I got this error
./node_modules/.pnpm/[[email protected]](vscode-file://vscode-app/Users/tanachaianakewat/Downloads/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)/node_modules/robotjs/build/Release/robotjs.node Module parse failed: Unexpected character '�' (1:0) 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](vscode-file://vscode-app/Users/tanachaianakewat/Downloads/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html) (Source code omitted for this binary file)

Apparently, Next js can't read node js module. I am wondering if there is anyway around this problem.

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