vaadin / designer

Public repository for Vaadin Designer
https://vaadin.com/designer
15 stars 3 forks source link

Check client-side dependencies installation in Vaadin 24 #2460

Open szolo opened 11 months ago

szolo commented 11 months ago

Steps to reproduce

  1. Open new fresh Vaadin 24 project.
  2. Create new design.
  3. Open newly created design.

Actual behavior

Dependencies are not installed.

Expected behavior

Dependencies are installed.

IDE, Designer and OS version

IntelliJ/Eclipse, Vaadin Designer 4.6.24, Win 10.

ITSolJa commented 9 months ago

I have the same problem. All Vaadin components are not usable in designer with error message "Required dependencies missing". Do we have a workaround or solution for this problem?

szolo commented 9 months ago

Hello @ITSolJa, may I ask you to check couple things? 1) Make sure that your node_modules folder is not empty and contains needed dependencies. 2) Make sure that node_modules folder is not excluded from indexing in IntelliJ IDEA.

ITSolJa commented 9 months ago

Hi @szolo ,

thanks for your feedback. I checked your questions.

  1. The node_modules folder is generated and filled with 464 sub folders. If we check for example the Vaadin "Vertical" component, I got the following error in Intellij Designer PlugIn:

image

If I check the nodes-modules, the dependency should be given in nodes-modules:

image

  1. The folder should not be marked as excluded from indexing in Intellij IDEA.

image

Also we can see here that the dependency of vertical layout is there:

image

P.S. I have the same problem for all Vaadin Components.

Do you see something what I check additionally?

Thanks and best regards

szolo commented 9 months ago

@ITSolJa hello, please check my comment here https://github.com/vaadin/designer/issues/2400 about fixing node_modules exclusion. Will it help?

ITSolJa commented 9 months ago

@szolo Hi, unfortunately, this solution solves not the problem :(

GeTOUO commented 8 months ago

I'm having the same issue, the designer is almost unusable, is there any workaround please. image

GeTOUO commented 8 months ago

The problem has been solved, and after setting node as the root directory of the source code according to @szolo's suggestions, the original cache needs to be emptied. Reindexing is time-consuming, but it works. Thanks @szolo. image

But why can't I preview the component?

MuhammadMussadiq commented 2 weeks ago

@GeTOUO Are you able to resolve this issue. I also can't preview the component