This was already resolved in vaadin-component-factory/vcf-autocomplete#4, but I'm seeing identical behavior now after updating from Vaadin 14 to Vaadin 23.
To briefly recap, the issue is that the plugin works in dev mode, but not in production mode. In production mode, the following error occurs (when minimization is disabled, otherwise the names are slightly more obscure):
Uncaught (in promise) TypeError: theme.register is not a function
at Object.<anonymous> (:8080/VAADIN/build/vaadin-1-8fc6aaa21d426e2ea7fe.cache.js:53861:7)
at __webpack_require__ (vaadin-bundle-5d8d58bfdba0286fd262.cache.js:64:30)
at Module.253 (:8080/VAADIN/build/vaadin-4-3328ac4d35c89ec36ab9.cache.js:279:24)
at __webpack_require__ (vaadin-bundle-5d8d58bfdba0286fd262.cache.js:64:30)
at async Flow_Flow.flowInit (vaadin-bundle-5d8d58bfdba0286fd262.cache.js:4356:17)
at async Object.action (vaadin-bundle-5d8d58bfdba0286fd262.cache.js:4259:21)
When navigating through the stack trace, it becomes clear that this refers to line 14 in the file theme/lumo/vcf-autocomplete-styles.js (which is theme.register(theme.id);). However, the import that was formerly missing in the file is already present, so the error cause is probably similar but not identical.
I am using Vaadin 23.0.1 and VCF Autocomplete (Java version) 2.3.2. At the time of this writing, these are the latest versions available. The Vaadin build correctly resolves the client-side dependency to @vaadin-component-factory/vcf-autocomplete:1.2.8, which is also the latest available version. Any help would be greatly appreciated.
This was already resolved in vaadin-component-factory/vcf-autocomplete#4, but I'm seeing identical behavior now after updating from Vaadin 14 to Vaadin 23.
To briefly recap, the issue is that the plugin works in dev mode, but not in production mode. In production mode, the following error occurs (when minimization is disabled, otherwise the names are slightly more obscure):
When navigating through the stack trace, it becomes clear that this refers to line 14 in the file
theme/lumo/vcf-autocomplete-styles.js(which istheme.register(theme.id);). However, the import that was formerly missing in the file is already present, so the error cause is probably similar but not identical.I am using Vaadin 23.0.1 and VCF Autocomplete (Java version) 2.3.2. At the time of this writing, these are the latest versions available. The Vaadin build correctly resolves the client-side dependency to
@vaadin-component-factory/vcf-autocomplete:1.2.8, which is also the latest available version. Any help would be greatly appreciated.