Common issues and fixes.
Run one of:
locus build --prisma-generate
npm run prisma:generate
Ensure .env
contains a valid DATABASE_URL
.
API uses PORT
or 3001. Set a custom: PORT=4001 locus dev
.
Next dev uses 3000 by default.
Confirm theme.css
exists in output root and next-app/public/theme.css
.
Landing page should import globals.css
which references /theme.css
.
Set ENABLE_CORS=1
to enable CORS middleware.
Use LOCUS_DEBUG=1 locus dev
to view changed files.
Verify file is inside source directory passed to --src
.
If build fails with a generator error, the message box will include Code: validation_error|parse_error|merge_error
or raw generator error text. Fix source or open an issue with the stack trace.
Need something else? Open an issue describing reproduction steps and environment.