SAP / ui5-tooling

An open and modular toolchain to develop state of the art applications based on the UI5 framework
https://sap.github.io/ui5-tooling
Apache License 2.0
465 stars 69 forks source link

Missing core module for self contained buildui5 #209

Closed vickyokrm closed 4 years ago

vickyokrm commented 4 years ago

Expected Behavior

Current Behavior

Self contained builder returns missing core module error. Nevertheless the build process was successful.

Steps to reproduce the issue

  1. Open an UI5 project uses UI5 tooling
  2. Build using UI5 build self-contained
  3. Watch the logs to find this error.

Context

Affected components (if known)

Log Output / Stack Trace

WARN lbt:analyzer:JSModuleAnalyzer Cannot evaluate registerPreloadedModules: 'Identifier'
ERR! lbt:bundle:Resolver **** error: missing module sap/ui/support/Bootstrap.js, required by sap/ui/core/Core.js
WARN lbt:analyzer:JSModuleAnalyzer Cannot evaluate registerPreloadedModules: 'Identifier'
matz3 commented 4 years ago

The reason for this error is that the sap.ui.core library has an optional dependency to the sap.ui.support library. In case you do not have a dependency on the sap.ui.support library, this error is shown but it can be safely ignored.

We need to find a better way to differentiate between such optional dependencies and actual missing dependencies.