Categories//view/The Hallucinated Import

The Hallucinated Import

beginner8 min70 pts

A teammate generated a new dashboard component with Copilot. The code looks polished and the imports look professional, but something feels off. They asked you to review before merging:

Copilot nailed this one. The component is clean, typed, and uses all the latest React patterns. Just a quick review?

What you're being evaluated on

Fictional package detection - Can you tell which imports point to real packages and which are hallucinated?
API accuracy - Even real APIs can be used with wrong signatures or nonexistent methods.
Environment awareness - Framework-specific patterns that are mixed up or used in the wrong context.

3 hints available (using hints reduces your score)

About this scenario

This React dashboard was generated by Copilot and looks production ready, but half the imports point to packages that do not exist on npm. Practice detecting hallucinated package names, fabricated API methods like response.fetchAll(), and framework mix-ups such as REACT_APP_ prefixes in a Next.js app. Reviewing AI-generated imports is now a core code review skill.

beginner · 70 points · 8 min · AI Code Review

What you will practice

Play the full scenario above for free. More AI Code Review scenarios · Create a free account to save your progress.