HamedMP / CursorLens

An open-source dashboard for Cursor.sh IDE. Log AI code generations, track usage, and control AI models (including local ones). Run locally or use upcoming hosted version.
https://www.cursorlens.com
GNU Affero General Public License v3.0
138 stars 22 forks source link

Cannot pnpm build;  ELIFECYCLE  Command failed with exit code 1. #2

Closed miali88 closed 2 months ago

miali88 commented 2 months ago

Following the docs/getting-started/installation, and up to step 5. The full logs are

`@MacBook-Pro-2 cursorlens % pnpm build

cursor-analytics@0.1.0 build /Users/ma/Library/GH_COMM/CursorLens/CursorLens next build

▲ Next.js 14.2.5

src/app/logs/[id]/page.tsx Type error: Page "src/app/logs/[id]/page.tsx" has an invalid "default" export: Type "LogDetailsProps" is not valid.

 ELIFECYCLE  Command failed with exit code 1.`

HamedMP commented 2 months ago

Thanks for reporting. I haven't had time to check the build command yet. Will reproduce it now and get back to you.

HamedMP commented 2 months ago

Can you pull now and see if it's fixed? I just pushed a fix and it worked on mine on this commit d2b33ca222c6de4804da8a6573b7adb105b3e4d3

miali88 commented 2 months ago

Issue fixed ✅, on the dev server. Just having issue with finding the API endpoint on Cursor settings, not seeing it on VSC extension, nor the website

HamedMP commented 2 months ago

You can find it in Models -> Override OpenAI Base URL

Make sure the toggle is ON if you are a Pro user.

Then use any OAI model (gpt-4o, etc) so that OAI settings will be used. Cursor decides which provider is it based on the first part of the model name.

image

I'm closing the issue as the original bug is fixed 🙌🏼