import { anyApi } from "convex/server";^^^^^^SyntaxError: Cannot use import statement outside a m
3 Replies
I assume you’re trying to follow the tutorial in the convex documentation, since your file name is task
You could try adding claude3.5 what the issue is here and provide the tutorial
Do you have a repo
Did you try to add "type": "module" to pkgjson
Check out https://docs.convex.dev/client/javascript/node#javascript-with-commonjs-require-syntax -- Looks like you're using this from a node script?
Node.js | Convex Developer Hub
Convex supports point-in-time queries (see