Closed temp4422 closed 5 months ago
Hi @webdev4422,
this is related to sharp.js not working 100% out-of-the-box with bun. When this issue progresses, we can take a look at it again: https://github.com/lovell/sharp/issues/3511
@webdev4422 adding
"trustedDependencies": [
"sharp"
],
and a post-install hook
"scripts": {
...
"postinstall": "cd node_modules/sharp && bun install && cd ../..",
...
},
to your package.json and reinstalling sharp should resolve the problem ;)
Hi @webdev4422,
Could you try the latest version of this package? In my test, it does work now with Bun
Hi @webdev4422,
Could you try the latest version of this package? In my test, it does work now with Bun
Confirm 🎉 Works with bun. Thank you!
Steps:
Remove rm node_modules package-lock.json .next out
Change in package.json
to "next-image-export-optimizer": "^1.12.2"
Run bun install && bun run build
When using npm everything work as expected. When using bun, got this error:
Info: