https://nextjs.org/learn/dashboard-app/fetching-data
// I add the import ... import { fetchRevenue } from '@/app/lib/data';
// No problem // Add the await fetchRevenue const revenue = await fetchRevenue();
// Error 26 | console.error('Database Error:', error);
27 | throw new Error('Failed to fetch revenue data.');
// Database has all tables and sample data. RLS is disabled. // Googled and found similar errors but not this one. :=( // Thanks for you time and interest.
Hello!
I have the same problem while going through the tutorial.