liferay-npm-bundler is a specialized Command Line Interface (CLI) utility designed to process Liferay widget projects and produce OSGi bundles, encapsulating the necessary npm dependencies for deployment to the Liferay Portal. Functioning similarly to bundlers like Webpack, it uniquely targets Liferay Portal as its platform, handling the intricacies of OSGi module packaging for frontend assets. This includes linking packages in the browser and facilitating the sharing of common module versions across widgets rather than each loading its own copy. It converts application resources and npm dependencies into a Liferay OSGi bundle, preparing them for deployment via a standard widget build (e.g., Gradle). As of its latest version, 2.32.2, it was part of the actively developed `liferay-frontend-projects` monorepo. However, it has been officially deprecated as of Liferay 2024.Q4/Portal GA129 and is scheduled for future removal, with Liferay shifting towards alternative frontend development and optimization strategies.
npm install liferay-npm-bundlerVerified import paths — ran on the pinned version, not inferred.
Demonstrates `liferay-npm-bundler` integration into `package.json` scripts for a typical Liferay widget project.
Consult Liferay's official documentation for current best practices and recommended alternatives for frontend development and deployment.
Upgrade `liferay-npm-bundler` to version 2.32.1 or later, which includes a fix for the `globby` compatibility issue.
Always check the official Liferay Node.js compatibility matrix for your Liferay DXP version and ensure your development environment adheres to those specifications.
Refer to Liferay's documentation for the compatibility matrix between `liferay-npm-bundler` and Liferay DXP versions to ensure proper alignment.
Avoid attempting to use Webpack-specific loader configurations or plugins directly with `liferay-npm-bundler`. Understand its unique approach to module loading and rule processing for Liferay's AMD environment.
Check the detailed output above the error for specific messages. Verify `package.json` scripts, `.npmbundlerrc` configuration, Node.js/npm versions, and Liferay Portal compatibility.
Ensure the dependency is correctly listed in `package.json`, installed via `npm install`, and that any custom module resolution paths in `.npmbundlerrc` are accurate.
Update or downgrade `liferay-npm-bundler` to a version officially supported by your Liferay Portal version, as specified in Liferay's compatibility documentation.
Upgrade `liferay-npm-bundler` to version 2.32.1 or higher to resolve the `globby` compatibility issue.
Review your `liferay-npm-bundler` configuration files against the official documentation to ensure all options and their syntax are correct and supported by your bundler version.
No dependency data recorded yet.