I just used this api package (https://github.com/readmeio/api) to generate a local npm package containing an API client for a service I'm using, which is based I guess on an OpenAPI spec. Initially it worked fine, but after restarting my Convex dev server, I'm now seeing a bunch of errors like the following:
✘ [ERROR] Could not resolve "fs"
node_modules/api/dist/core/prepareParams.js:42:35:
42 │ var fs_1 = __importDefault(require("fs"));
╵ ~~~~
The package "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.
See https://api.readme.dev/docs/how-it-works for details on how this api package functions/what it does.