Skip to Content
0
Jan 21, 2021 at 08:27 PM

Hybris 1811 Local Environment Build Fail on Ant Clean All

170 Views

After pulling down the dev branch to update my local installation of Hybris 1811, I ran the "ant clean all" command as I have always done only this time the build failed and I'm unable to correct the errors that are being returned. Does anybody have any suggestions? Here is the section of the log where the failure occurs:

[exec] Running "tslint:files" (tslint) task
     [exec] INFO: web/app/common/components/genericEditor/GenericEditorComponent.ts : deprecated code since version 6.5 : @SeComponent({
     [exec] INFO: web/app/common/components/genericEditor/GenericEditorModule.ts : deprecated code since version 6.5 : export const GENERIC_EDITOR_UNRELATED_VALIDATION_ERRORS_EVENT_CONSTANT: SeValueProvider = {
     [exec] INFO: web/app/common/components/genericEditor/populators/types.ts : deprecated code since version 1811 : populate(payload: DropdownPopulatorPayload): angular.IPromise<GenericEditorOption[]>;
     [exec] INFO: web/app/common/components/genericEditor/services/EditorFieldMappingService.ts : deprecated code since version 6.6 : getFieldMapping(structureTypeName: string, componentTypeName: string, discriminator: string, componentTypeStructure: GenericEditorStructure): any {
     [exec] INFO: web/app/common/components/genericEditor/services/SeValidationErrorParser.ts : deprecated code since version 6.5 : @SeInjectable()
     [exec] INFO: web/app/common/services/deprecate.ts : deprecated code since version 1808 : const deprecatedSince1808 = () => {
     [exec] INFO: web/app/common/services/deprecate.ts : deprecated code since version 1811 : export function deprecatedSince1811() {
     [exec] INFO: web/app/common/services/interfaces/ICatalogService.ts : deprecated code since version 6.4 : getAllCatalogsGroupedById(): angular.IPromise<ICatalog[][]> {
     [exec] INFO: web/app/common/services/interfaces/IContextualMenuButton.ts : deprecated code since version 6.5 : templateUrl?: string;
     [exec] INFO: web/app/common/services/interfaces/IContextualMenuButton.ts : deprecated code since version 6.7 : callbacks?: TypedMap<(configuration?: IContextualMenuConfiguration, $event?: Event) => void>;
     [exec] INFO: web/app/common/services/interfaces/IContextualMenuButton.ts : deprecated code since version 6.7 : callback?(configuration?: IContextualMenuConfiguration, $event?: Event): void;
     [exec] INFO: web/app/common/services/interfaces/IStorageService.ts : deprecated code since version 6.6 : storePrincipalIdentifier(principalUID: string): angular.IPromise<void> {
     [exec] INFO: web/app/common/services/interfaces/IStorageService.ts : deprecated code since version 6.6 : removePrincipalIdentifier(): angular.IPromise<void> {
     [exec] INFO: web/app/common/services/interfaces/IStorageService.ts : deprecated code since version 6.6 : getPrincipalIdentifier(): angular.IPromise<string> {
     [exec] INFO: web/app/common/services/language/LanguageService.ts : deprecated code since version 1808 : getBrowserLanguageIsoCode(): string {
     [exec] INFO: web/app/common/services/language/LanguageService.ts : deprecated code since version 1808 : getBrowserLocale(): string {
     [exec] INFO: web/app/common/services/rest/IRestServiceFactory.ts : deprecated code since version 6.7 : setDomain?(domain: string): void;
     [exec] INFO: web/app/common/services/SystemEventService.ts : deprecated code since version 1808 : sendSynchEvent(eventId: string, data?: any): angular.IPromise<any> {
     [exec] INFO: web/app/common/services/SystemEventService.ts : deprecated code since version 1808 : sendAsynchEvent(eventId: string, data?: any): angular.IPromise<any> {
     [exec] INFO: web/app/common/services/SystemEventService.ts : deprecated code since version 1808 : registerEventHandler(eventId: string, handler: EventHandler): () => void {
     [exec] INFO: web/app/common/utils/functionsModule.ts : deprecated code since version 6.6 : {
     [exec] INFO: web/app/common/utils/functionsModule.ts : deprecated code since version 1811 : {
     [exec] INFO: web/app/common/utils/functionsModule.ts : deprecated code since version 1808 : {
     [exec] INFO: web/app/smartedit/deprecate.ts : deprecated code since version 6.7 : const deprecatedSince67 = () => {
     [exec] INFO: web/app/smartedit/deprecate.ts : deprecated code since version 1811 : const deprecatedSince1811 = () => {
     [exec] INFO: web/app/smartedit/services/ComponentHandlerService.ts : deprecated code since version 6.7 : getPageUID(): angular.IPromise<string> {
     [exec] INFO: web/app/smartedit/services/ComponentHandlerService.ts : deprecated code since version 6.7 : getPageUUID(): angular.IPromise<string> {
     [exec] INFO: web/app/smartedit/services/ComponentHandlerService.ts : deprecated code since version 6.7 : getCatalogVersionUUIDFromPage(): angular.IPromise<string> {
     [exec] INFO: web/app/smartedit/services/ComponentHandlerService.ts : deprecated code since version 6.7 : getFromSelector(selector: string | HTMLElement | JQuery): JQuery {
     [exec] INFO: web/app/smartedit/services/ComponentHandlerService.ts : deprecated code since version 6.5 : getComponentInOverlay(smarteditComponentId: string, smarteditComponentType: string): JQuery {
     [exec] INFO: web/app/smarteditcontainer/deprecate.ts : deprecated code since version 6.7 : const deprecatedSince67 = () => {
     [exec] INFO: web/app/smarteditcontainer/deprecate.ts : deprecated code since version 1811 : export function deprecatedSince1811() {
     [exec] INFO: web/app/smarteditcontainer/services/CatalogServiceOuter.ts : deprecated code since version 6.4 : getAllCatalogsGroupedById(): angular.IPromise<ICatalog[][]> {
     [exec] INFO: web/app/smarteditcontainer/services/iframe/IframeManagerService.ts : deprecated code since version 1808 : initializeCatalogPreview(): Error {
     [exec] INFO: web/app/smarteditcontainer/services/ProductService.ts : deprecated code since version 6.7 : getProducts(productSearch: IProductSearch, _mask: string, _pageSize: number, _currentPage: number): angular.IPromise<Page<IProduct>> | Error {
     [exec] >> 500 files lint free.
     [exec]
     [exec] Running "checkNoForbiddenNameSpaces" task
     [exec]
     [exec] Running "checkI18nKeysCompliancy" task
     [exec]
     [exec] >> i18n:
     [exec] 1 properties file processed successfully.
     [exec]
     [exec] >> HTML and JS:
     [exec] 473 HTML and JS files processed successfully.
     [exec]
     [exec] Run '--verbose' for more details.
     [exec]
     [exec] Running "checkNoFocus" task
     [exec]
     [exec] Running "clean:target" (clean) task
     [exec] >> 0 paths cleaned.
     [exec]
     [exec] Running "copy:sources" (copy) task
     [exec] Copied 427 files
     [exec]
     [exec] Running "ngtemplates:run" (ngtemplates) task
     [exec] File jsTarget/templates.js created.
     [exec]
     [exec] Running "uglify:uglifyThirdparties" (uglify) task
     [exec] >> 5 files created 678 kB → 214.87 kB
     [exec]
     [exec] Running "instrumentSmarteditCommons" task
     [exec]
     [exec] Running "instrumentSeInjectable" task
     [exec]
     [exec] Running "webpack:prodSmartedit" (webpack) task
     [exec] ℹ 「atl」: Using typescript@3.0.1 from typescript
     [exec] ℹ 「atl」: Using tsconfig.json from /Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/ext-content/smartedit/smartedit-custom-build/generated/tsconfig.prod.smartedit.json
     [exec] ℹ 「atl」: Checking started in a separate process...
     [exec] ✖ 「atl」: Checking finished with 5 errors
     [exec] ERROR in [at-loader] ./jsTarget/web/app/common/dtos/IExtensibleResourceClass.ts:15:62
     [exec]     TS2694: Namespace 'angular' has no exported member 'resource'.
     [exec] ERROR in [at-loader] ./jsTarget/web/app/common/dtos/IExtensibleResourceClass.ts:17:27
     [exec]     TS2694: Namespace 'angular' has no exported member 'resource'.
     [exec] ERROR in [at-loader] ./jsTarget/web/app/common/dtos/IExtensibleResourceClass.ts:17:65
     [exec]     TS2694: Namespace 'angular' has no exported member 'resource'.
     [exec] ERROR in [at-loader] ./jsTarget/web/app/common/services/language/LanguageService.ts:59:31
     [exec]     TS2694: Namespace 'angular' has no exported member 'translate'.
     [exec] ERROR in [at-loader] ./jsTarget/web/app/common/components/yMoreText/YMoreTextComponent.ts:54:31
     [exec]     TS2694: Namespace 'angular' has no exported member 'translate'.
     [exec]
     [exec]
     [exec] Execution Time (2021-01-21 09:11:15 UTC-8)
     [exec] loading tasks                3.8s  ▇▇▇▇ 9%
     [exec] copy:ckeditor                3.5s  ▇▇▇ 8%
     [exec] jsbeautifier:files           1.9s  ▇▇ 5%
     [exec] tsformatter                    4s  ▇▇▇▇ 10%
     [exec] jshint:all                   2.8s  ▇▇▇ 7%
     [exec] tslint:files                 7.4s  ▇▇▇▇▇▇▇ 18%
     [exec] checkNoForbiddenNameSpaces  819ms  ▇ 2%
     [exec] ngtemplates:run              1.1s  ▇ 3%
     [exec] uglify:uglifyThirdparties      2s  ▇▇ 5%
     [exec] instrumentSmarteditCommons   2.5s  ▇▇▇ 6%
     [exec] instrumentSeInjectable       1.3s  ▇▇ 3%
     [exec] webpack:prodSmartedit        9.1s  ▇▇▇▇▇▇▇▇ 22%
     [exec] Total 41s
     [exec]


BUILD FAILED
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/build.xml:102: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/platform/resources/ant/compiling.xml:90: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/platform/resources/ant/compiling.xml:148: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/platform/resources/ant/util.xml:20: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/platform/resources/ant/compiling.xml:155: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/platform/resources/ant/compiling.xml:284: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/platform/resources/ant/util.xml:146: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/ext-content/smartedit/buildcallbacks.xml:71: The following error occurred while executing this line:
/Users/uspojrahm/Development/hybris-1811/hybris/hybris/bin/ext-content/npmancillary/buildcallbacks.xml:258: exec returned: 1