huang-julien / nitro-applicationinsights

Application insights plugin for nitro.
MIT License
10 stars 0 forks source link

0.6.0 windows startup error #58

Closed robert-phillips1 closed 4 months ago

robert-phillips1 commented 5 months ago

Hello,

I'm getting an issue after following the migration steps for 0.6.0

windows 11 node 20.11.1 nuxt 3.11.1 nitro 2.9.4

image

huang-julien commented 5 months ago

Hi :wave: do you have a minimal reproduction please ? https://stackblitz.com/edit/nuxt-starter-qn4x7n

At first sight, i think you need to set the resolution of mlly to 1.4.0. I'll check upstream if this can be fixed

robert-phillips1 commented 5 months ago

can confirm this workaround got me unblocked:

// package.json
  "overrides": {
    "mlly": "1.4.0"
  }
huang-julien commented 5 months ago

tracking in https://github.com/unjs/nitro/issues/2308

huang-julien commented 5 months ago

@robert-phillips1 can you also try with experimental.legacyExternal in your nitro config ? it seems to be working for me. This would avoid you to force the resolution of mlly to 1.4.0

huang-julien commented 4 months ago

@robert-phillips1 with nitro-applicationinsights now being a nitro module (0.7.0) you shouldn't need to add any workaround anymore. The module will do it for you.

I'm closing this issue. If there's any issue again related to this, feel free to reopen it or to open another issue :)