JohnK
JohnK
CCConvex Community
Created by JohnK on 12/2/2024 in #support-community
Turborepo
I'm fiddling around to get a turborepo working. Everything is fine but running "npx convex dev" inside project/packages/backend gives me: Could not resolve "fs" ../../node_modules/next/dist/compiled/gzip-size/index.js:1:2840: 1 │ ...)?processFn(o,r):o}return n}},147:e=>{"use strict";e.exports=require("fs")},781:e=>{"use strict";e.exports=require("stream")},796:e=>{"use str...} 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. Could not resolve "stream" ../../node_modules/next/dist/compiled/gzip-size/index.js:1:2886:...";e.exports=require("fs")},781:e=>{"use strict";e.exports=require("stream")},796:e=>{"use strict";e.exports=require("zlib")}};var r={};functi... The package "stream" 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. Could not resolve "zlib" ../../node_modules/next/dist/compiled/gzip-size/index.js:1:2936: 1 │ ...e.exports=require("stream")},796:e=>{"use strict";e.exports=require("zlib")}};var r={};function nccwpck_require(t){var n=r[t];if(n!==undef... The package "zlib" 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. package.json in project/packages/backend: { "name": "@packages/backend", "version": "1.0.0", "description": "", "author": "", "license": "ISC", "scripts": { "dev": "convex dev", }, "dependencies": { "@clerk/backend": "^1.18.0", "@packages/types": "*", "convex": "^1.17.3" } } I had a look at https://www.convex.dev/templates/monorepo but everything is setup the same. Am I missing something obvious?
3 replies