Error while running `npx convex dev` on mac - No loader is configured for ".node" files: fsevents
If I run
npx convex dev
on mac it throws this error:
On Windows WSL it works just fine. Any ideas?
node version tested:
- v18.20.8
- v20.18.0
- v22.14.0 (The same used on windows WSL)
- v23.11.05 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Try adding fsevents to externalPackages: https://docs.convex.dev/functions/bundling#specifying-external-packages
Bundling | Convex Developer Hub
Bundling is the process of gathering, optimizing and transpiling the JS/TS
This does not seem to solve it - the error stays unchanged.
Added convex.json with
at the same level as my package.json.
I've also installed fsevents to be double sure as a dependency, but it's also not making a difference.
Ah I thought fsevents was a direct dependency, you’ll want to externalize whatever direct dependency is using it
Great - that helped a lot thanks ❤️