Vaadin 10 custom-elements-es5-adapter

Hello everyone,

currently i am developing a vaadin-java-app for a cloud system, which is based on cloudfoundry. It’s a requirement for every hosted app to use a so-called “OSBar” provided by this cloud, which shows a home button, app information and a logo. This Bar is injected by importing a javascript file and executing some javascript with “UI.getCurrent().getPage().executeJavaScript(JAVASCRIPT)”. Unfortunately there are some js-script errors thrown while using this app.

“Script error. (https://static.eu1.mindsphere.io/osbar/v4/js/custom-elements-es5-adapter.js:0)”
“TypeError: class constructors must be invoked with |new|”

custom-elements-es5-adapter.js:13
client-577086961B1B35A92EB1DA736107820D.cache.js:407
client-577086961B1B35A92EB1DA736107820D.cache.js:756
client-577086961B1B35A92EB1DA736107820D.cache.js:979
client-577086961B1B35A92EB1DA736107820D.cache.js:716
client-577086961B1B35A92EB1DA736107820D.cache.js:884

A previous version of this OSBar didn’t provide a custom-elements-es5-adapter.js and it worked like a charm, but i don’t know, if this is the cause of the problem.

Does anyone have an idea and could help me? Is this a es5/es6 problem?

Thanks and regards,
Sebastian

Hey,

i solved the problem by loading custom-elements-es5-adapter separately with “@JavaScript(UR_TO_JS)”.

Regards,
Sebastian