Daniel Roe

Results 2595 comments of Daniel Roe

You should use `nuxtApp.runWithContext` if you are calling a composable that needs the Nuxt instance _after_ an await within your own composable. More details: https://nuxt.com/docs/api/composables/use-nuxt-app#runwithcontext.

You have to call `useNuxtApp` before the `await` - that's the issue.

Oh, I would definitely consider that a bug then...

This is likely a vite optimizeDeps issue. Yes, I think you would need to add the dep manually. I wonder if we could somehow add the layer files as inputs...

See https://github.com/nuxt/nuxt/issues/15774#issuecomment-1397418341 for now. I'll leave this open as we don't currently have an issue to track yarn specifically.

this should now be resolved 👍

Here's a [reproduction sandbox for Nitro](https://stackblitz.com/github/unjs/nitro/tree/main/examples/hello-world). 🙏

Because this only reproduces in Bun, if it still exists it should be reported to the bun repo - it will be a bug in bun, likely in its interaction...

We'd like to explore expanding the ability of `