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

Designer not working with help-view type modules #12

Closed
QNENet opened this issue Mar 3, 2021 · 2 comments
Closed

Designer not working with help-view type modules #12

QNENet opened this issue Mar 3, 2021 · 2 comments

Comments

@QNENet
Copy link

QNENet commented Mar 3, 2021

Right click help-view and select new>Vaadin 10+ design.

Design dialog reports

No Polymer found in the project
The project must have a valid polymer.html, wither from a webjar or from Bower
Please check your project configuration.

In an earlier version, I think it was V14 compatibility, mode the designer worked through all modules to find the desired frontend.

@tanbt
Copy link

tanbt commented Mar 24, 2021

Since help-view module doesn't contain node_modules, Designer couldn't find related dependencies (e.g. Polymer).

To help Designer to know what module contains node_modules:

  1. put .vaadin/desinger/project-settings.json under the help-view module with this config
{
  "--node.modules.project.name": "project-base-karaf"
}

where project-base-karaf is the module that has the node_modules folder.

  1. It's recommended to put the template files into META-INF\resources\frontend so they can be bundled in the JAR package.

After these steps, you should be able to right click help-view and create a new V10+ design.
Example project: base-starter-flow-karaf.zip

@szolo
Copy link

szolo commented Apr 7, 2021

Hello @QNENet,

I double-checked everything and you only need to use suggestion 1 from Tan. Everything will work afterwards and there is no need to create a separate frontend folder.

@Peppe Peppe closed this as completed Apr 7, 2021
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

4 participants