Martin Vaněk 2 Months Ago - Edited Another great piece to the puzzle, thanks David. I would also like to mention possibility to develop CE with hotswap within Liferay page. For us this works the best since we can see the whole page with all the resources included not just the CE (also same page context, sesion, cookies..). We are using what Testray team presented in /dev/24 (link to the presentation https://youtu.be/1wfUCTNqG58?t=7338) and its been wonderful, I am very grateful for it. If I should do quick summary it uses Vites backend integration https://vitejs.dev/guide/backend-integration.html Basically you just include 3 files in your manually created development CE and it works very nicely and very fast. Please sign in to reply. Reply as... Cancel David H Nebinger Martin Vaněk 2 Months Ago - Edited Thanks Martin! Yeah there's a lot more that can be done outside of the 5 easy steps. This post was meant to help React developers get their projects on Liferay, then tackle more advanced topics like hotswap, shared modules, ... Please sign in to reply. Reply as... Cancel
David H Nebinger Martin Vaněk 2 Months Ago - Edited Thanks Martin! Yeah there's a lot more that can be done outside of the 5 easy steps. This post was meant to help React developers get their projects on Liferay, then tackle more advanced topics like hotswap, shared modules, ... Please sign in to reply. Reply as... Cancel
Brahma Teja Ponnuru 2 Months Ago - Edited Hi David, Thanks for the blog, steps 1 to 5 are very clear, but to actually build the zip file you told to use this ../../gradlew build command but how it will work wihtout a liferay workspace, and if we need to use a liferay workspace where to copy this custom element folder, could you please specifiy that steps as well. Please sign in to reply. Reply as... Cancel David H Nebinger Brahma Teja Ponnuru 2 Months Ago - Edited You need the Liferay Workspace Brahma in order to build the right assets for deployment. It's not going to build the right zip file outside of the Liferay Workspace. Please sign in to reply. Reply as... Cancel
David H Nebinger Brahma Teja Ponnuru 2 Months Ago - Edited You need the Liferay Workspace Brahma in order to build the right assets for deployment. It's not going to build the right zip file outside of the Liferay Workspace. Please sign in to reply. Reply as... Cancel
Brahma Teja Ponnuru 2 Months Ago - Edited Created a Liferay workspace and created the react project under modules folder then if I try to build it is giving error "Execution failed for task ':modules:my-react-app:packageRunBuild'. > Process 'command 'cmd'' finished with non-zero exit value 1". Please sign in to reply. Reply as... Cancel David H Nebinger Brahma Teja Ponnuru 2 Months Ago - Edited It's important to build the React apps from the client-extensions folder in the workspace, not the modules folder. The modules folder is reserved for OSGi (Java) modules. The React apps need to be in the client-extensions folder for the workspace to handle them correctly. Please sign in to reply. Reply as... Cancel
David H Nebinger Brahma Teja Ponnuru 2 Months Ago - Edited It's important to build the React apps from the client-extensions folder in the workspace, not the modules folder. The modules folder is reserved for OSGi (Java) modules. The React apps need to be in the client-extensions folder for the workspace to handle them correctly. Please sign in to reply. Reply as... Cancel
Mati Szuti 3 Days Ago - Edited I stucked at this one: ../../gradlew build I am getting this error message: Could not determine the dependencies of task ':client-extensions:my-react-app:packageRunBuild'. > java.lang.NullPointerException (no error message) Tried different gradle version, but always this error When I turn on the warnings I am getting this > Configure project : The org.gradle.util.CollectionUtils type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.8/userguide/upgrading_version_7.html#org_gradle_util_reports_deprecations The org.gradle.util.VersionNumber type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.8/userguide/upgrading_version_8.html#org_gradle_util_reports_deprecations The org.gradle.util.VersionNumber type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.8/userguide/upgrading_version_7.html#org_gradle_util_reports_deprecations FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':client-extensions:my-react-app:packageRunBuild'. > java.lang.NullPointerException (no error message) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 3s Please sign in to reply. Reply as... Cancel