Cannot find package '@better-auth/core' after updating from 1.4.4 to 1.4.6

After upgrading from 1.4.4 to 1.4.6 I starting getting this error
Error: Cannot find package '@better-auth/core' imported from C:\Users\Douglas\Development\Projects\nodejs\expirychecker\node_modules\@better-auth\expo\dist\index.mjs

Does anyone know how to fix it?
Solution
  • Try reinstalling node_modules folder.
  • 'npm uninstall <pkg>' then 'npm install <pkg>'
  • If its a IDE Error (Occuring inside of VSCode for example) Try restarting language servers.
Was this page helpful?