JakeyjujuJ
Convex Community2y ago
4 replies
Jakeyjuju

Unable to import node:fs

I'm trying to modify a local convex project to write to a file, but when I import node:fs I get this error:

The package "node:fs" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

I've tried adding fs to Node_modules but it still returns the same error. Sorry if this is a dumb question, I'm new to convex and not really sure what the procedure is for importing stuff is.
Was this page helpful?