Next.js Discord

Discord Forum

UMD error? after upgrade?

Answered
Red-necked Grebe posted this in #help-forum
Open in Discord
Red-necked GrebeOP
i could not find a fix online.
Answered by B33fb0n3
I got the same error. It must be from some new update. If you click one "Quick Fix", you can see, that the IDE want's to add the React import on top. Do that and the error is gone. If you don't want to import react, don't use a React.Fragment for now
View full answer

6 Replies

@Red-necked Grebe i could not find a fix online.
I got the same error. It must be from some new update. If you click one "Quick Fix", you can see, that the IDE want's to add the React import on top. Do that and the error is gone. If you don't want to import react, don't use a React.Fragment for now
Answer
@Red-necked Grebe react fragment by any means is `<></>` ?
yea, a react fragment is either <></> or <React.Fragment></React.Fragment>
Happy to help