vaadin-component-factory / lookup-field-flow

Java API for a Lookup Field in Vaadin
https://componentfactory.app.fi/lookup-field-flow-demo/
Apache License 2.0
0 stars 1 forks source link

Doesn't seems to work with Vaadin 22 alpha 7 #5

Closed SebastianKuehnau closed 1 year ago

SebastianKuehnau commented 2 years ago

building a simple project with Vaadin 22 alpha 7 will end up with the following error message

ERROR in ../node_modules/.pnpm/multiselect-combo-box@2.4.2/node_modules/multiselect-combo-box/src/multiselect-combo-box.js
Module not found: Error: Can't resolve '@vaadin/vaadin-combo-box/src/vaadin-combo-box-placeholder.js' in '/Users/sebastian/Documents/Vaadin/PiT/Quarkus-Test-1/my-app/node_modules/.pnpm/multiselect-combo-box@2.4.2/node_modules/multiselect-combo-box/src'
<i> [build-status] 1 error and 0 warnings were reported.
<i> [build-status] : Failed to compile.

------------------ Frontend compilation failed. ------------------

2021-10-12 16:46:38.771  INFO 9568 --- [onPool-worker-1] c.vaadin.base.devserver.WebpackHandler   : Started webpack-dev-server. Time: 14676ms
No issues found.
<i> [webpack-dev-middleware] wait until bundle finished: /manifest.json
<i> [FlowIdPlugin] Serving the 'stats.json' file dynamically.

WARNING in InjectManifest has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.

ERROR in ../node_modules/.pnpm/multiselect-combo-box@2.4.2/node_modules/multiselect-combo-box/src/multiselect-combo-box.js
Module not found: Error: Can't resolve '@vaadin/vaadin-combo-box/src/vaadin-combo-box-placeholder.js' in '/Users/sebastian/Documents/Vaadin/PiT/Quarkus-Test-1/my-app/node_modules/.pnpm/multiselect-combo-box@2.4.2/node_modules/multiselect-combo-box/src'
<i> [build-status] 1 error and 1 warning were reported.
<i> [build-status] : Failed to compile.

------------------ Frontend compilation failed. ------------------
jcgueriaud1 commented 2 years ago

The component has not been tested for Vaadin 15+.

The last version of the lookup field includes the multiselect combobox. Maybe the component is not compatible with Vaadin 22. Using the previous version of the lookup-field component might help v1.1.1 (it won't include the multiselect-combo-box but it might be still incompatible)

jcgueriaud1 commented 2 years ago

Maybe you can try to only use the multiselect combox and if it's not working open a ticket or add a comment here: https://github.com/gatanaso/multiselect-combo-box/issues/101

jcgueriaud1 commented 2 years ago

For Vaadin 22, maybe https://vaadin.com/directory/component/lookup-field/2.0.1/links is working.

jcgueriaud1 commented 2 years ago

There is a new release for Vaadin 23: https://github.com/vaadin-component-factory/lookup-field-flow/releases/tag/v23.1.2