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

[commonjs--resolver] node_modules/node-screenshots-darwin-x64/node-screenshots.darwin-x64.node (1:0): Unexpected character '�' (Note that you need plugins to import files that are not JavaScript) #240

Open
ccc469 opened this issue Jun 6, 2024 · 1 comment

Comments

@ccc469
Copy link

ccc469 commented Jun 6, 2024

[commonjs--resolver] node_modules/node-screenshots-darwin-x64/node-screenshots.darwin-x64.node (1:0): Unexpected character '�' (Note that you need plugins to import files that are not JavaScript)

image

"electron": "^30.0.8"

@showonne
Copy link

maybe you should add config follow this: https://github.com/nashaofu/screenshots/blob/master/packages/electron-screenshots/README.md#%E6%B3%A8%E6%84%8F
and if you use vite, you should add config:

optimizeDeps: {
  exclude: ['node-screenshots']
},

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

2 participants