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

More graceful handling of npm/pnpm errors #19234

Open
mshabarov opened this issue Apr 23, 2024 · 0 comments
Open

More graceful handling of npm/pnpm errors #19234

mshabarov opened this issue Apr 23, 2024 · 0 comments

Comments

@mshabarov
Copy link
Contributor

Describe your motivation

This would help developers to eliminate npm/pnpm installation or Vite build originated errors, when Vaadin project is built.
The errors may have different root causes: recently released buggy version of some package, package versions incompatibility between what is installed by Vaadin and what is added into project, compilation errors.

Describe the solution you'd like

No exact solution at this point, but could be any subset of the following ideas:

  • improve error handling:
    • somehow make it still render the parts that are not affected by error,
    • improve the format of error message in server logs,
    • show error on the web page,
  • upgrade Vaadin installed npm package versions to latest
  • lock versions that are installed by Vaadin to avoid sudden upgrades to a buggy version, see this feature ticket
  • give suggestions in the server log and online docs (e.g. delete package-lock.json, run Vaadin clean frontend maven goal, or suggest to upgrade the problematic package to a latest version).

Additional context

Target release: Vaadin 24.5 and 24.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🪵Product backlog
Development

No branches or pull requests

1 participant