vaadin / full-stack-starter

Public repository for Full Stack Starter issues
https://vaadin.com/start
1 stars 0 forks source link

Cannot get PushStateNavigation to work with bakery app #1

Open andersforsell opened 6 years ago

andersforsell commented 6 years ago

Hi,

I am playing around with a generated bakery app for FW8 and Spring Boot. I changed the pom to use the 8.3 Vaadin release and annotated the AppUi class like this:

@Theme("apptheme")
@SpringUI
@Viewport("width=device-width,initial-scale=1.0,user-scalable=no")
@Title("Vaadin Demo Bakery App")
@PushStateNavigation
public class AppUI extends UI implements HasLogger {

After compiling and running I get this error in the Chrome console:

Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at XMLHttpRequest.r.onreadystatechange (vaadinBootstrap.js?v=8.3.0:169)

Any idea how to fix this?

johannesh2 commented 6 years ago

Thanks for the report. We should definitely port Bakery for 8.3 and make it work.