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

Improve unhandled dev server errors #2927

Open
1 task done
pi0 opened this issue Dec 9, 2024 · 3 comments · May be fixed by #2928
Open
1 task done

Improve unhandled dev server errors #2927

pi0 opened this issue Dec 9, 2024 · 3 comments · May be fixed by #2928
Labels
dev enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Dec 9, 2024

Describe the feature

With recent ecosystem updates, several issues surfaced that fail dev server startup, but Nitro does not provide enough context of what error is,

Only simple message like [ERROR [worker reload] [worker init] ../.nuxt/dev/index.mjs failed](https://github.com/primefaces/primevue/issues/6712#top) is currently displayed.

One simple way to find root of issues currently is to do a production build (npm run build should show more hints)

A nice solution (primefaces/primevue#6712) had been suggested by @web-dev-sam to attach error cause.

(I will be working on a PR but if anyone wanted to pick it earlier, please ping + consider helping to make a minimal reproduction to confirm our fix alongside)

Additional information

  • Would you be willing to help implement this feature?
@OskarLebuda
Copy link

@pi0 I think I can handle it this week. Is that ok for you?

@OskarLebuda
Copy link

OskarLebuda commented Dec 9, 2024

Got something like that:
image

The reproduction is quite simple for the Nuxt. Just add app.config.ts:

// app.config.ts

export default defineAppConfig({
  ready: ref(false),
});

ref is not defined here, so the worker will not initialize.

@OskarLebuda
Copy link

I've created 2 PR for that 🧑‍💻 for V2 and V3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants