cancel
Showing results for 
Search instead for 
Did you mean: 

SmartEdit migration issue 6.7 -> 1808

Hi experts!
During Hybris migration from 6.7 to 1808 version I faced with issue with ant all target.

It tries to compile SmartEdit related extensions and fails with the next error:

[exec] [at-loader] Checking finished with 1 errors [exec] ERROR in [at-loader] ./jsTarget/web/features/cmssmartedit/cmssmarteditAppModule.ts:333:9 [exec] TS2305: Module '".../bin/ext-smartedit/cmssmartedit/jsTarget/web/featureExtensions/adcmssmartedit/cmssmartedit/index"' has no exported member 'adcmssmarteditModule'.
Seems that I found where export occurs, but I don't have any idea why it doesn't work.
I have node.js 8.11.0 installed.

Export module code (cmssmartedit.ts):

import * as angular from 'angular';

const adcmssmarteditModule = angular
.module('adcmssmarteditModule', ['adcmssmartedit/cmssmarteditTemplates'])
.service('ycmsSampleService', () => {
console.log('ycmsSampleService');
});

export default adcmssmarteditModule;

Did anyone face with such issue during migration to 1808?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Root cause identified: in 6.7 version index.ts imported module in this manner:

export * from './cmssmartedit';

However, in 1808 it was changed to:

export {adcmssmarteditModule} from './cmssmartedit';