extensions/default

"I’m using SuiteCRM 8. In my system, I placed Angular code inside:
extensions/defaultExt/app/src/containers/sidebar-widget/tasks.
When I run yarn run build:defaultExt, I can see the sidebar widget working correctly.

But when I packaged it (for Module Loader), I put the folder path as extensions/defaultExt, and also updated the manifest.php to point from extensions/defaultExt to extensions/defaultExt.

After I install the package using Module Loader, the folder is installed under public/legacy/extensions/defaultExt instead of suitecrm/extensions/defaultExt. So the widget does not appear.

How can I make it work and get the output properly?"


:white_check_mark: Proper English Conversion:

I’m currently using SuiteCRM 8.
In my development system, I placed the Angular widget code in the folder:

swift

CopyEdit

extensions/defaultExt/app/src/containers/sidebar-widget/tasks

When I run the command:

bash

CopyEdit

yarn run build:defaultExt

the sidebar widget loads and works correctly inside SuiteCRM.

Later, I tried to convert it into a package to install it using Module Loader.
For that, I added the folder extensions/defaultExt into the package and updated the manifest.php to copy it from:

bash

CopyEdit

from: extensions/defaultExt  
to: extensions/defaultExt

But after installing the package through Module Loader, the folder gets copied into:

swift

CopyEdit

public/legacy/extensions/defaultExt

instead of the correct location:

bash

CopyEdit

suitecrm/extensions/defaultExt

As a result, the widget doesn’t work after installation.

Now my question is:
:point_right: How can I correctly package and install this extension so that it gets placed in suitecrm/extensions/defaultExt and works properly with Angular build?