Problems with ToggleButton for Flow (Vaadin 23.3.2)

Hi there.

I’m in progress of updating a Vaadin 14 Spring Boot application. Still need to recreate the menu structure,but all views are working already.

I’ve had an old paper toggle button and want to replace it with this one:
https://vaadin.com/directory/component/togglebutton-for-flow

Neither I get an artifact in my local maven repository nor a corresponding package in node_modules.
I don’t have an entry at the package.json, neither. Do I have to put something there manually?

After editing the pom and also after vaadin:dance it seems not to get fetched by npm:

`2023-01-02 11:20:57.710e[0;39m e[32m INFOe[0;39m e[35m10492e[0;39m e[2m—e[0;39m e[2m[onPool-worker-3]e[0;39m e[36mc.v.f.s.frontend.TaskUpdatePackages e[0;39m e[2m:e[0;39m Frontend dependencies resolved successfully.
e[2m2023-01-02 11:21:05.018e[0;39m e[32m INFOe[0;39m e[35m10492e[0;39m e[2m—e[0;39m e[2m[onPool-worker-3]e[0;39m e[36mc.v.f.s.frontend.TaskCopyFrontendFiles e[0;39m e[2m:e[0;39m Copying frontend resources from jar files …
e[2m2023-01-02 11:21:05.268e[0;39m e[32m INFOe[0;39m e[35m10492e[0;39m e[2m—e[0;39m e[2m[onPool-worker-3]e[0;39m e[36mc.v.f.s.frontend.TaskCopyFrontendFiles e[0;39m e[2m:e[0;39m Visited 28 resources. Took 249 ms.
e[2m2023-01-02 11:21:05.458e[0;39m e[33m WARNe[0;39m e[35m10492e[0;39m e[2m—e[0;39m e[2m[onPool-worker-3]e[0;39m e[36mc.v.f.server.frontend.TaskUpdateImports e[0;39m e[2m:e[0;39m Token file is not available. Fallback chunk data won’t be written.
e[2m2023-01-02 11:21:05.850e[0;39m e[32m INFOe[0;39m e[35m10492e[0;39m e[2m—e[0;39m e[2m[onPool-worker-3]e[0;39m e[36mc.v.f.server.frontend.TaskUpdateImports e[0;39m e[2m:e[0;39m

Failed to find the following imports in the node_modules tree:
- @vaadin-component-factory/vcf-toggle-button
If the build fails, check that npm packages are installed.

To fix the build remove package-lock.json and node_modules directory to reset modules.
In addition you may run npm install to fix node_modules tree structure.`

Sounds like a potential add-on packaging issue. Do you have the 2.0.0 version in use?

If it does not easily solve itself with a clean build, perhaps best to create an issue here: https://github.com/vaadin-component-factory/toggle-button/issues

Hi Sami, will have a look and either continue successfully or create an issue :wink:

BTW, the web component is not updated to V23 versions of Vaadin components

https://github.com/vaadin-component-factory/vcf-toggle-button/blob/f5c5d78b465349ffd0408d780055604e14dbc53d/package.json#L42

While platform should override versions, this will definitely break with V24