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

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

Open
haijian-ccc opened this issue Jan 8, 2025 · 1 comment
Open

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

haijian-ccc opened this issue Jan 8, 2025 · 1 comment

Comments

@haijian-ccc
Copy link

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.
@Legioth
Copy link
Member

Legioth commented Jan 8, 2025

Looks like some additional definitions are needed nowadays. We might want to add those to the example but I would at the same time also encourage anyone using csp.js to get comfortable with doing it on your own since you will anyways need it for any add-on or similar that you're using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants