share-extras / js-console

Administration Console component for Alfresco Share, that enables the execution of arbitrary JavaScript code against the repository
Other
74 stars 54 forks source link

Not able to select space while running js-console project as an amp dependency in SDK 3 share and repo #84

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

While trying to select space from the Javacsript Console page I am not able to load the Destination Folder in the pop after clicking on Select... button.

I can see the following error in the dev console

TypeError: Alfresco.CommonComponentStyleFilterChain is not a constructor

After cloning and building the amps for the js-console share and repo project I defined the js-console project amps dependencies in my share and repo SDK 3 project.

Below is how I am defining the amp dependency in the share and repo poms

Share/pom.xml

                    _<moduleDependency>
                        <groupId>de.fmaul</groupId>
                        <artifactId>javascript-console-share</artifactId>
                        <version>0.7-SNAPSHOT</version>
                        <type>amp</type>
                    </moduleDependency>_

Repo/pom.xml

                    _<moduleDependency>
                        <groupId>de.fmaul</groupId>
                        <artifactId>javascript-console-repo</artifactId>
                        <version>0.7-SNAPSHOT</version>
                        <type>amp</type>
                    </moduleDependency>_
enribar commented 6 years ago

Take a look at https://github.com/share-extras/js-console/issues/80#issue-263071388 is it the same issue?

ghost commented 6 years ago

Hi,

It seems to be a same issue. I will try the solution provided and let you know.