azar
azar
CCConvex Community
Created by azar on 3/8/2024 in #support-community
npx convex dev error
getting error in this format
The package [PACKAGE_NAME] 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.
The package [PACKAGE_NAME] 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.
this is my first time using convex, i have looked other related post, but could nt be able to fix it, can you tell me where should i made the changes required ? project link - https://github.com/azr-arch/unishare --verbose logs:
Codegen finished.
Skipping convex\auth.config.ts that contains multiple dots
Preparing convex\auth.ts
Preparing convex\clerk.ts
Preparing convex\file.ts
Preparing convex\http.ts
Skipping convex\README.md
Skipping convex\schema.ts
Skipping convex\tsconfig.json
Preparing convex\users.ts
Skipping convex\_generated\api.d.ts
Skipping convex\_generated\api.js
Skipping convex\_generated\dataModel.d.ts
Skipping convex\_generated\server.d.ts
Skipping convex\_generated\server.js
⠹ Bundling modules for Convex's runtime...
X [ERROR] Could not resolve "fs"

node_modules/next/dist/compiled/gzip-size/index.js:1:2840:
1 │ ...trict";e.exports=require("fs")},781:e=>{"use strict";e...
╵ ~~~~

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.
Codegen finished.
Skipping convex\auth.config.ts that contains multiple dots
Preparing convex\auth.ts
Preparing convex\clerk.ts
Preparing convex\file.ts
Preparing convex\http.ts
Skipping convex\README.md
Skipping convex\schema.ts
Skipping convex\tsconfig.json
Preparing convex\users.ts
Skipping convex\_generated\api.d.ts
Skipping convex\_generated\api.js
Skipping convex\_generated\dataModel.d.ts
Skipping convex\_generated\server.d.ts
Skipping convex\_generated\server.js
⠹ Bundling modules for Convex's runtime...
X [ERROR] Could not resolve "fs"

node_modules/next/dist/compiled/gzip-size/index.js:1:2840:
1 │ ...trict";e.exports=require("fs")},781:e=>{"use strict";e...
╵ ~~~~

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.
19 replies