vercel / next-learn

Learn Next.js Starter Code
https://next-learn-dashboard.vercel.sh/
MIT License
3.68k stars 1.89k forks source link

Chapter 6: Error conecting database #782

Closed Lucio25 closed 3 months ago

Lucio25 commented 3 months ago

I have this error when executing the npm run seed code, I don't understand why I followed the steps C:\Users\Lucio\Desktop\Programacion\nextjs-dashboard\app\lib\placeholder-data.ts:143 export { users, customers, invoices, revenue }; ^^^^^^

SyntaxError: Unexpected token 'export'

nguyenmp commented 3 months ago

Might help to share placeholder-data.ts.

I'm guessing a line above was deleted or edited accidentally because those lines are not 143. https://github.com/vercel/next-learn/blob/main/dashboard/starter-example/app/lib/placeholder-data.ts#L147

Try replacing the file with what's on github and see if that fixes.

leerob commented 3 months ago

I am not able to reproduce, but you can work from the final-example backwards if you want to see the differences in your codebase.