Luc Gagan
Luc Gagan
I am getting this in older versions too (v2.8.2)
Looks like this is failing because it cannot resolve `dist/compiled/*` paths. I am not sure how to properly fix this. ``` "./dist/compiled/*": { "require": "./dist/compiled/*" }, ``` This fails because...
Just in case, leaving this PR open to drive attention. Not expecting work to continue, as it seems that this approach will not work. Unless there is some underlying work...
Submitted a pull request. Until that is merged/released, here is a local patch that you can use: ```patch diff --git a/package.json b/package.json index bfa500ed3b8526117c602e6ee9cc2aef847c317e..9025f24c698f89f231fd47da901d9ebc2c2f29cd 100644 --- a/package.json +++ b/package.json @@...
getting: ``` - wait compiling /blog/[slug]/opengraph-image/[[...__metadata_id__]]/route (client and server)... - error ./node_modules/.pnpm/@[email protected]/node_modules/@napi-rs/image-darwin-arm64/image.darwin-arm64.node Module parse failed: Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type,...
Had to add: ```js export default { webpack: (config) => { config.externalsType = 'commonjs'; config.externals = config.externals || []; config.externals.push({ '@napi-rs/image': "@napi-rs/image", }); return config; }, }; ``` to `next.config.js`
This is cool!
In case of Next.js, adding `experimental.esmExternals: 'loose'` fixes the issue.
Just needs to pass the tests. @roberto-mardeni I can help to get this across the line.
What needs to be done to support it?