Weird bugs

Hi there, I'm following a tutorial and did everything the same (https://www.youtube.com/watch?v=Vjtn9pWAZDI&t=612s&ab_channel=WebDevCody) my issue is though I get this error everytime I try to run npx convex dev:
X [ERROR] Could not resolve "fs"

node_modules/next/dist/compiled/gzip-size/index.js:1:2840:
1 ...essFn(o,r):o}return n}},147:e=>{"use strict";e.exports=require("fs")},781:e=>{"use strict";e.exports=require("stream")},796:e=>{"u...
~~

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.

X [ERROR] Could not resolve "stream"

node_modules/next/dist/compiled/gzip-size/index.js:1:2886:
1 ...xports=require("fs")},781:e=>{"use strict";e.exports=require("stream")},796:e=>{"use strict";e.exports=require("zlib")}};var r={};...
~~

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.

X [ERROR] Could not resolve "zlib"

node_modules/next/dist/compiled/gzip-size/index.js:1:2936:
1 ...rts=require("stream")},796:e=>{"use strict";e.exports=require("zlib")}};var r={};function nccwpck_require(t){var n=r[t];if(n!=...
~~

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.
Was this page helpful?