AI was trained on code from various time periods. It might generate:
- Python syntax in a Python project
- React class components when you use hooks
- CommonJS requires when you need ES modules
Check that AI-generated code matches your project's language version, framework version, and module system. Version mismatches cause subtle bugs.