liferay / liferay-frontend-projects

A monorepo containing assorted Frontend Infrastructure Team projects
Other
66 stars 67 forks source link

A Liferay CLI Tool created portlet cannot be deployed correctly
 #1167

Closed Noro07 closed 10 months ago

Noro07 commented 10 months ago

Issue type (mark with x)

Version (mark with x)

Description

I followed this tutorial to create a project. when I load this widget and load it in the layout, it cannot load the project and display the following config. Did I miss something for displaying this portlet? Thanks in advance

tutorial link
  https://learn.liferay.com/w/dxp/building-applications/tooling/other-tools/liferay-cli-tool#:~:text=You%20can%20also%20select%20%E2%80%9CLiferay,are%20build%20and%20bundle%20tools.



command


image

Desired behavior: load the vue porlet

Current behavior: display the config

image

Repro instructions (if applicable):

Other information (environment, versions etc):

bryceosterhaus commented 10 months ago

@Noro07 perhaps I am misunderstanding you, but I think what you are looking at is in fact the vue portlet.

We have markup like:

            <div>
                <span class="tag">${Liferay.Language.get('portlet-namespace')}:</span> 
                <span class="value">{{portletNamespace}}</span>
            </div>

And then we initialize the Vue app with new Vue and pass in a data object that contains portletNamespace.

Am I missing something from your comment?

bryceosterhaus commented 10 months ago

Note that the cli tool generates a portlet with vue 2

Noro07 commented 10 months ago

@bryceosterhaus Thanks for your help!