Fix React error #130 and backend event creation

Frontend fixes:
- Disable verbatimModuleSyntax in TypeScript config to fix module imports
- Add displayName to critical React components for better production debugging
- Configure Vite build with manual chunks for better code splitting
- Enable sourcemaps for production debugging

Backend fixes:
- Remove updated_at field from events table insert (column doesn't exist)
- Fix SQL error that was causing 500 errors on event creation

These changes resolve:
- React error #130 that occurred during login and event creation
- 500 Internal Server Error when creating new events
- Better error tracking in production builds

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-07 13:30:53 +02:00
parent 2e7cba9e8a
commit 193cadef27
7 changed files with 25 additions and 7 deletions
@@ -49,4 +49,6 @@ export const AdminLayout: React.FC = () => {
</div>
</div>
);
};
};
AdminLayout.displayName = 'AdminLayout';
+3 -1
View File
@@ -311,4 +311,6 @@ export const AdminDashboard: React.FC = () => {
</Card>
</div>
);
};
};
AdminDashboard.displayName = 'AdminDashboard';
+3 -1
View File
@@ -210,4 +210,6 @@ export const AdminLoginPage: React.FC = () => {
</div>
</div>
);
};
};
AdminLoginPage.displayName = 'AdminLoginPage';
+3 -1
View File
@@ -438,4 +438,6 @@ export const CreateEventPage: React.FC = () => {
</form>
</div>
);
};
};
CreateEventPage.displayName = 'CreateEventPage';