Pintiboy
Pintiboy5mo ago

Problems with the MGMT Example Project (Templates)

I wanted to install the MGMT Example Project from the templates (https://www.convex.dev/templates/fullstack), but when I run "npm run dev" I get the error 'ERROR: "dev:init" exited with 1.'. Does anybody know what that means?
2 Replies
ian
ian5mo ago
dev:init is the name of a script in package.json. It runs npx convex dev --until-success. npm run dev runs that, and then runs the frontend (next dev) and backend (syncing code to convex with convex dev) in parallel
ian
ian5mo ago
I just pushed a change so it isn't called dev:init but will run before npm run dev by naming it predev. more details here: https://stack.convex.dev/npm-run-dev-with-package-scripts
Supercharge npm run dev with package.json scripts
With a simple npm run dev we can sign up a user for Convex, add seed data, and run the frontend and backend (including database) in parallel. Here's...

Did you find this page helpful?