Getting white and blank screen with $0.selectLocale Error

Hi there,

I’m getting white screen with $0.selectLocale javascript error.
I’m creating new flow-ui module 1.5 version. No addons intalled, only one “English” locale, 17.0.4.1 java version
image

Can you advice me?

Thanks,
Nurmuhammad

Hello!

Could you clarify do you run the application under Windows OS?

Hi @pinyazhin ,
Yes, i’m running on windows os.
And getting this error in console.
image

on server side everything is ok, no errors shows.

There is an issue I created for this problem: Long Class-Path may break the frontend · Issue #1571 · jmix-framework/jmix · GitHub

Also I created an issue in Vaadin, however the cause of problem is in Spring Framework, see:

  1. Long Class-Path may break the UI · Issue #16554 · vaadin/flow · GitHub
  2. PathMatchingResourcePatternResolver gives different results with classpath in JAR manifest · Issue #28276 · spring-projects/spring-framework · GitHub

Unfortunately, I still cannot find the workaround of the problem.

As “half” workaround you can try to define application property:

vaadin.productionMode=true

It allows you to start the application, however some components do not work correctly (at least DatePicker, DateTimePicker, TimePicker, DrawerToggle). Not sure the cause of problem for now. Probably need to create another issue.

Hi,
I have encountered the same problem.

You can fix this in two ways:

It is working for me

Yes, as Jimmy said, Vaadin suggests the following work arounds Starting a Vaadin Project with Gradle | Starting a Project | Get Started | Vaadin Docs

  1. Using mavenLocal()
  2. Using vaadin.whitelisted-packages property