nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.81k stars 154 forks source link

fix: scheduledTasks can be undefined #626

Closed noook closed 4 months ago

noook commented 4 months ago

Types provided by nitro don't reflect the situation on the shape of nitro tasks options. Here, Object.entries(undefined) throws an error.

I will update the types on Nitro after this PR.

Note: this PR doesn't need to be merged if the fix is provided upstream on nitro, this is just a patch in the meanwhile

noook commented 4 months ago

Link to nitro issue: https://github.com/unjs/nitro/issues/2283

I'll take care of this tomorrow

noook commented 4 months ago

Should I close this as fixed upstream or keep it for extra runtime security?

pi0 commented 4 months ago

i would suggest to keep for safety 👍🏼