Convex Ents not working after updating to 0.5.0
This code now throws this error:
7 Replies
@FleetAdmiralJakob π π π are you on latest version of all packages?
Can you share your deps from package.json?
If you canβt resolve it downgrade back for now, thereβs no functional change only the change to type: βmoduleβ
my package.json (removed the not informative parts):
That looks good, have you tried all usual suspects:
- npm install
- restart typescript server
- restart VS Code
?
If that doesn't help can you boil it down? (remove tables from schema and remove files from convex/ while preserving the error)
i tried out the usual suspects yes. the error even occurs on pnpm build.
I will try to boil it down
ok, I deleted the _generated dir and reran pnpm dlx convex dev and now found the original error:
Cannot find module 'convex-ents' or its corresponding type declarations.ts(2307)
that's seems like the reason of the anys
(I now updated to convex-ents 0.5.1 (seems like to have no impact))
So youβre using pnpm, and it looks like switching from commonjs to module broke things. Iβll look more into it tomorrow.
Hey @FleetAdmiralJakob π π π , can you try upgrading to convex-ents@latest and let me know if it fixed your issue? Thanks
great! works! thank you very much
you just reverted the type: "module" change, right?
There are some unrelated changes (to migration helpers)