on 11-20-2020 9:49 AM
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?
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';
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.