amianthus
amianthus
Explore posts from servers
CCConvex Community
Created by amianthus on 4/14/2025 in #support-community
Can't deploy to Vercel with Next.js
When I push to vercel and it runs the "npx convex deploy --cmd 'bun run build'", it keeps giving me nextjs's node api errors and telling me to add use node directives but thats for the frontend no?
node_modules/next/dist/compiled/gzip-size/index.js:1:2840:
1 │ ...use strict";e.exports=require("fs")},781:e=>{"use strict";e.expo...
╵ ~~~~
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.
✘ [ERROR] Could not resolve "stream"
node_modules/next/dist/compiled/gzip-size/index.js:1:2886:
1 │ ...e strict";e.exports=require("stream")},796:e=>{"use strict";e.ex...
╵ ~~~~~~~~
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.
✘ [ERROR] Could not resolve "zlib"
node_modules/next/dist/compiled/gzip-size/index.js:1:2936:
1 │ ...se strict";e.exports=require("zlib")}};var r={};function __nccwp...
╵ ~~~~~~
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.
✖ It looks like you are using Node APIs from a file without the "use node" directive.
See https://docs.convex.dev/functions/runtimes#nodejs-runtime
node_modules/next/dist/compiled/gzip-size/index.js:1:2840:
1 │ ...use strict";e.exports=require("fs")},781:e=>{"use strict";e.expo...
╵ ~~~~
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.
✘ [ERROR] Could not resolve "stream"
node_modules/next/dist/compiled/gzip-size/index.js:1:2886:
1 │ ...e strict";e.exports=require("stream")},796:e=>{"use strict";e.ex...
╵ ~~~~~~~~
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.
✘ [ERROR] Could not resolve "zlib"
node_modules/next/dist/compiled/gzip-size/index.js:1:2936:
1 │ ...se strict";e.exports=require("zlib")}};var r={};function __nccwp...
╵ ~~~~~~
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.
✖ It looks like you are using Node APIs from a file without the "use node" directive.
See https://docs.convex.dev/functions/runtimes#nodejs-runtime
I added "use node" to my convex routes anyways but still nothing works
9 replies
DTDrizzle Team
Created by amianthus on 1/12/2025 in #help
$defaultFn() for an ISO timestamp in a text() field set as NULL
No description
2 replies
WWasp
Created by amianthus on 8/5/2024 in #🙋questions
Dynamic Route
In Nextjs you can have a route such as api/someName/[action].ts and action is dynamic. Is this possible with Wasp?
40 replies
WWasp
Created by amianthus on 8/5/2024 in #🙋questions
Entire app being invisible if ad blocker is enabled
No description
7 replies