Can't setup migrations -Module '"./_generated/api.js"' has no exported member 'components'.ts(2305)
When setting up migrations (following this doc: https://www.convex.dev/components/migrations)
After installing the package and defining my convex.config.ts (I did not have a config.ts before this, so I created one)
while trying to add this code to
convex/migrations.ts
, I get a ts error
line 2 errors with Module '"./_generated/api.js"' has no exported member 'components'.ts(2305)
I have npx convex dev
running (no issues)
my _generated/api.js and api.d.ts are in screenshots.


2 Replies