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/[robotjs@0.6.0](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.
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/[robotjs@0.6.0](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.