Closed timfish closed 1 month ago
This also affects nitropack (and therefore also Nuxt). The .output
build folder of nuxt does not include import-in-the-middle/hook.mjs
which can lead to the same error.
I am not a 100% sure how nuxt builds nuxt apps under the hood but nodeFileTrace
is used here in nitropack: https://github.com/unjs/nitro/blob/v2/src/rollup/plugins/externals.ts
@pi0 @vercel/nft
should probably be updated after this is merged: https://github.com/vercel/nft/pull/429
Thanks for the heads up @s1gr1d. Nitro has a caret ^
dependency on @vercel/nft
which means as long as any fix or enhancement lands in a semver-minor/patch version of this package, updating your lock file is enough to get the fix.
Nevertheless feel free to report an issue downstream in nitropack repo if you can assemble a minimal nitro reproduction 🙏🏼
:tada: This issue has been resolved in version 0.27.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
package.json
test.js
build.js
Running
> node build.js
OutputsSet(1) { 'test.js' }
But
import-in-the-middle/hook.mjs
and all of it's dependencies should be included.