vaadin / vaadin/flow-crm-tutorial

csp.js file throws client-side error with backend navigation

Open
#314 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
204
Forks
194
Avg merge
55m
Merged PRs (30d)
2

Description

The 24.5-strict-csp branch was really hopeful for getting started with CSP. However when I start to add some backend navigation, it throws client-side errors and the url is not updated.
image

Steps to reproduce:

  1. In DashboardView, add a button for backend navigation, add(new Button("Go to List", buttonClickEvent -> UI.getCurrent().navigate(ListView.class)));
  2. Start the application, and open the Chrome Dev Tools.
  3. Observe that upon clicking the button, it throws the errors in the Chrome Dev console, and the url is not updated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start on the 24.5-strict-csp branch and inspect csp.js alongside the DashboardView navigation shown in the reproduction steps. Reproduce the click in Chrome DevTools and trace the client-side errors. Done means navigating to ListView updates the URL without those console errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, javascript, spring-boot
Domain
full-stack, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.