Eric TourvieilleE

Can't resolve node package when i use npm convex dev

X [ERROR] Could not resolve "path"

node_modules/rimraf/node_modules/glob/common.js:14:19:
14 │ var path = require("path")
~~

The package "path" 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 "path"

node_modules/rimraf/node_modules/glob/sync.js:9:19:
9 │ var path = require('path')
~~

The package "path" 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 "fs"

node_modules/fs.realpath/old.js:24:17:
24 │ var fs = 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.

X [ERROR] Could not resolve "assert"

node_modules/rimraf/node_modules/glob/sync.js:10:21:
10 │ var assert = require('assert')
~~

The package "assert" 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.

I have those errors when i want to update my convex functions with npx convex dev and impossible to resolve in order to get my changes.
I tried to update all my packages, update convex
I actually use only an httpAction in my project
Was this page helpful?