Skip to content

README: run the example with scripts that exist - #298

Open
mikecann wants to merge 1 commit into
mainfrom
fix/start-from-scratch
Open

mikecann wants to merge 1 commit into
mainfrom
fix/start-from-scratch

Conversation

@mikecann

@mikecann mikecann commented Dec 1, 2026

Copy link
Copy Markdown
Member

Why

Collaborative Editor on convex.dev/examples now copies this repo and runs npm install, and then the README's steps are what people (and their agents) follow next. Those currently fall over with:

npm error Missing script: "setup"

This is important because it's the first thing someone hits when they try the example.

From my agent:

The README's "Running the example locally" says npm run setup then npm run example, and neither script exists since the move to the component API.

This changes it to npm install then npm run dev (which sets up the deployment, pushes the example and rebuilds the component), and npm run dev:frontend in another terminal for the example app. No code changes.

Checked on 1 Dec the way the page runs it (npx degit, then npm install): the install, npm run dev (which deploys the example) and the typecheck pass. Separately, without the lockfile a fresh install puts @tiptap/core 3.35 under @blocknote/core next to the pinned 3.24.0 at the root, and the typecheck fails with TS2322 in src/blocknote/index.ts. The page keeps the lockfile, so it isn't hit there.

The commit message has the full details. Cheers!

🤖 Generated with Claude Code

convex.dev/examples now starts the Collaborative Editor example with
`npx degit convex/prosemirror-sync my-app` and `npm install`, so the
next thing people (and their coding agents) do is follow "Running the
example locally", which says `npm run setup` then `npm run example`. Neither
script has existed since the move to the component API, so on a fresh clone
the first command stops with:

    npm error Missing script: "setup"

What does work, checked from a fresh clone: `npm install`, then `npm run dev`
(its predev runs `convex init` and the component codegen, then it pushes the
example and keeps rebuilding the component), and `npm run dev:frontend` for
the example app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@pkg-pr-new

pkg-pr-new Bot commented Dec 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@convex-dev/prosemirror-sync@298

commit: 25b21c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant