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

initialization errors in nuxt 3.0.0 dev mode #85

Closed
PawelDmochowski opened this issue Dec 5, 2022 · 7 comments
Closed

initialization errors in nuxt 3.0.0 dev mode #85

PawelDmochowski opened this issue Dec 5, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@PawelDmochowski
Copy link

πŸ› The bug

Receiving this error when running in dev mode in a minimal setup (see reproduction - everything is copied directly from provided playground).

image

The result is dev server not starting.

πŸ› οΈ To reproduce

https://github.com/PawelDmochowski/nuxt-turnstile-dev-error.git

🌈 Expected behaviour

Dev server should start.

ℹ️ Additional context

Simple commenting out the line with verifyTurnstileToken makes the server start.
image

Also if I copy contents of src/runtime/nitro/utils/verify.ts directly into api endpoint in server/api/submit.ts everything works fine.
image

@PawelDmochowski PawelDmochowski added the bug Something isn't working label Dec 5, 2022
@PawelDmochowski PawelDmochowski changed the title initialization errors in nuxt 3 3.0.0 dev mode initialization errors in nuxt 3.0.0 dev mode Dec 5, 2022
@danielroe
Copy link
Collaborator

danielroe commented Dec 5, 2022

Looks like the same underlying issue as nuxt-modules/html-validator#232 - you can try using WSL as a workaround until this is resolved.

@PawelDmochowski
Copy link
Author

Thanks for looking into it. It certainly looks like the same nuxt/nuxt#15249 related issue.
BTW: production build is not throwing any errors and the resulting code works correctly so it's only a dev issue.

Copy link
Collaborator

Would you try with the edge channel to see if this is resolved? https://nuxt.com/docs/guide/going-further/edge-channel/

@PawelDmochowski
Copy link
Author

Edge channel does not fix the issue.

@dargmuesli
Copy link
Collaborator

Would you mind trying again with the latest version of this module, @PawelDmochowski? πŸ™

@PawelDmochowski
Copy link
Author

Any combination newer than Nuxt 3.1.0 and module version 0.1.2 seems to be working correctly. πŸ‘

@dargmuesli
Copy link
Collaborator

Great! If the issue reappears, this can be reopened! :)

@dargmuesli dargmuesli closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants