Micha
Micha3w ago

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:
% npx convex dev
Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/perfect-rhinoceros-26

Preparing Convex functions...
[ERROR] No loader is configured for ".node" files: node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.node

node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.js:13:23:
13 │ const Native = require("./fsevents.node");
% npx convex dev
Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/perfect-rhinoceros-26

Preparing Convex functions...
[ERROR] No loader is configured for ".node" files: node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.node

node_modules/.pnpm/fsevents@2.3.3/node_modules/fsevents/fsevents.js:13:23:
13 │ const Native = require("./fsevents.node");
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.0
5 Replies
Convex Bot
Convex Bot3w ago
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!
erquhart
erquhart3w ago
Bundling | Convex Developer Hub
Bundling is the process of gathering, optimizing and transpiling the JS/TS
Micha
MichaOP2w ago
This does not seem to solve it - the error stays unchanged. Added convex.json with
{
"node": {
"externalPackages": ["fsevents"]
}
}
{
"node": {
"externalPackages": ["fsevents"]
}
}
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.
erquhart
erquhart2w ago
Ah I thought fsevents was a direct dependency, you’ll want to externalize whatever direct dependency is using it
Micha
MichaOP2w ago
Great - that helped a lot thanks ❤️

Did you find this page helpful?