Skip to content

fix: scheduledTasks can be undefined#626

Merged
antfu merged 1 commit intonuxt:mainfrom
noook:main
Mar 21, 2024
Merged

fix: scheduledTasks can be undefined#626
antfu merged 1 commit intonuxt:mainfrom
noook:main

Conversation

@noook
Copy link
Copy Markdown
Contributor

@noook noook commented Mar 20, 2024

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
Copy link
Copy Markdown
Contributor Author

noook commented Mar 20, 2024

Link to nitro issue: nitrojs/nitro#2283

I'll take care of this tomorrow

@noook
Copy link
Copy Markdown
Contributor Author

noook commented Mar 21, 2024

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

@pi0
Copy link
Copy Markdown
Member

pi0 commented Mar 21, 2024

i would suggest to keep for safety 👍🏼

@antfu antfu merged commit 7044c47 into nuxt:main Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants