Message Boards
Using liferay-amd-loader with soy in Liferay 7.3
Using liferay-amd-loader with soy in Liferay 7.3
Junior Member Posts: 37 Join Date: 6/6/16 Recent PostsHi, anyone who can help with the liferay-amd-loader?
In 7.2 we
easily created a custom image-editor-capability (add the Image Editor
Capability component, and add the correct soy & es.js
files)
since every image-editor-capability was a separate module
( see: https://github.com/liferay/liferay-portal/tree/7.2.x/modules/apps/frontend-image-editor)
.
In 7.3, all image editors are included in the
frontend-image-editor-web (see: https://github.com/liferay/liferay-portal/tree/7.3.x/modules/apps/frontend-image-editor/frontend-image-editor-web).
It
seems that pretty much everything works the same (re soy/ js) , but I
just can't seem to get our custom image editor capability to
work.
The frontend-image-editor seems to recognize that there is
an extra capability, so that works, but the liferay-amd-loader keeps
complaining that the required modules can't be found.This used to be
my package.json for 7.2:
{
"dependencies": {
"metal": "2.16.8",
"metal-component": "2.16.8",
"metal-soy": "2.16.8"
},
"devDependencies": {
"liferay-module-config-generator": "^1.2.1",
"metal-cli": "^4.0.1"
},
"name": "frontend-image-editor-capability-focus-point",
"version": "1.15.0"
}
Which was the only thing i needed. I have tried using
babel & liferay-npm-bundler, and also use liferay's own way of
building the frontend-image-editor-web @liferay/npm-scripts (see: https://github.com/liferay/liferay-portal/blob/7.3.x/modules/apps/frontend-image-editor/frontend-image-editor-web/package.json).
Although
I can't use frontend-js-web, so without that.