Component agent should be aware of imports possible

Created on 28 August 2025, about 14 hours ago

Overview

Currently there is no restrictions in what imports that the model is trained on that it might use - for me its constantly trying to import next/link.

See screenshots:

I'm guessing this is due to the following one-shot snippet:

Example:
  import Image from 'next-image-standalone';
  export default function MyComponent({ photo }) {
    return <Image src={src} alt={alt} width={width} height={height} /> // Use ONLY <Image>.
  }

The next-image-standalone is a specific import, outside of the Next.js library, but it inforces that it has access to Next.js libraries/compnents.

We might need a follow up issue to actually fix a tool that can list possible imports and how to use them, but this fixes the initial bug, by prompting.

Proposed resolution

Make sure that the system knows that next-image-standalone is an exception and that it does not have access to Next.js components.

🐛 Bug report
Status

Active

Version

1.0

Component

AI

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024