ES6 next.js not recommended?
Answered
Prairie yellowjacket posted this in #help-forum
Prairie yellowjacketOP
After setting "type": "module" in package.json, I noticed I had to do a few hacky workarounds, such as using Image.default instead of just Image as the component from next/image.
Should we be avoiding this setting? Or should this be filed as a bug?
Should we be avoiding this setting? Or should this be filed as a bug?
Answered by joulev
i think that
next/image [has been fixed in v14.1.0](https://github.com/vercel/next.js/pull/59852)2 Replies
@Prairie yellowjacket After setting "type": "module" in package.json, I noticed I had to do a few hacky workarounds, such as using Image.default instead of just Image as the component from next/image.
Should we be avoiding this setting? Or should this be filed as a bug?
i think that
next/image [has been fixed in v14.1.0](https://github.com/vercel/next.js/pull/59852)Answer
Prairie yellowjacketOP
Yep, can confirm. Coincidentally fixed on same day, ha. Thanks!