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

JavaScript errors because of incorrect addon name space #13

Open
McPringle opened this issue Oct 27, 2021 · 0 comments
Open

JavaScript errors because of incorrect addon name space #13

McPringle opened this issue Oct 27, 2021 · 0 comments

Comments

@McPringle
Copy link

To improve startup performance, I configured a package whitelist:

vaadin.whitelisted-packages=org.komunumo

With Vaadin 21 in my application, I get a bunch of JavaScript errors on the client (type errors, undefined properties). The problem is an incorrect namespace for the component. The namespace is com.vaadin.componentfactory but should be org.vaadin.addons.componentfactory (like enhanced-date-time-picker, because the namespace org.vaadin.addons is scanned by default).

My workaround was to extend my whitelist:

vaadin.whitelisted-packages=org.komunumo, com.vaadin.componentfactory

I hope I could explain the problem understandably.

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

1 participant