Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt.options.serverHandlers is not iterable #14000

Closed
madeofcloud opened this issue May 17, 2022 · 3 comments
Closed

nuxt.options.serverHandlers is not iterable #14000

madeofcloud opened this issue May 17, 2022 · 3 comments

Comments

@madeofcloud
Copy link

I was having an issue in only Nuxt v3.0.0-rc.3 but not in v3.0.0-rc.2

This is the error message:

Nuxt CLI v3.0.0-rc.3

 ERROR  nuxt.options.serverHandlers is not iterable

  at resolveHandlers (/project/node_modules/nuxt/dist/index.mjs:1240:37)
  at initNitro (/project/node_modules/nuxt/dist/index.mjs:1112:43)
  at initNuxt (/project/node_modules/nuxt/dist/index.mjs:1341:9)
  at async loadNuxt (/project/node_modules/nuxt/dist/index.mjs:1358:5)
  at async loadNuxt (/project/node_modules/@nuxt/kit/dist/index.mjs:657:19)

I am confused at why it works in rc2 but not in rc3.

@Atinux
Copy link
Member

Atinux commented May 17, 2022

Can you please provide a reproduction?

@madeofcloud
Copy link
Author

I was able to solve the issue somehow. It just worked with v3.0.0-rc.3 all of a sudden.

@taybenlor
Copy link

I had this error today after upgrading from rc1 to rc3 and fixed it with an npm upgrade I'm guessing it was an incompatibility between nitro versions for rc1 and rc3.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants