Joiubas
Joiubas3w ago

Better Auth Next.js example does not work

Running npx convex dev --once in the examples/next directory results in these errors:
No description
9 Replies
erquhart
erquhart3w ago
Run npm run build in the repo root
Joiubas
JoiubasOP3w ago
now the error is different, should I start from a fresh clone of the git repo?
No description
erquhart
erquhart3w ago
hmm that's pretty strange, not sure whether a fresh clone will help but worth a shot have you used other package managers in your repo clone, like pnpm or bun? recommend using npm for everything with this repo
Joiubas
JoiubasOP3w ago
no I haven't, but I might have run something extra in an attempt to fix the package issue Happens on a fresh clone as well
erquhart
erquhart3w ago
can you paste the content of /dist/esm/package.json here
Joiubas
JoiubasOP3w ago
'{\n "type": "module"\n}'
'{\n "type": "module"\n}'
is it because I'm on windows
erquhart
erquhart3w ago
not even sure how that happens, that's like a js string in a json file
Joiubas
JoiubasOP3w ago
will try on mac
erquhart
erquhart3w ago
it's possible

Did you find this page helpful?