envkey

fsevents causes Module parse failed: Unexpected character '�'

前提是你 提交于 2021-01-27 05:22:18
问题 I am using next.js and I get: Failed to compile. ./node_modules/fsevents/fsevents.node 1:0 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 (Source code omitted for this binary file) I tried almost everything, most recently, to package.json , I added: "optionalDependencies": { "fsevents": "^2.1.3" } In next.config.js , I have: