Nextの@semaphore-protocol/proof
のimportで下記のエラーが出る場合
./node_modules/fastfile/src/fastfile.js
Can't import the named export 'O_TRUNC' (imported as 'O_TRUNC') from default-exporting module (only default export is available)
以下のように書き直す
const { generateProof, packToSolidityProof } = require("@semaphore-protocol/proof");