- Issue created by @marcus_johansson
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.
Make sure that the system knows that next-image-standalone is an exception and that it does not have access to Next.js components.
Active
1.0
AI