Getting below error in calling LWC inside the Omniscript.
below in my LWC
import { LightningElement,track } from 'lwc';
import { OmniscriptBaseMixin } from 'omnistudio/omniscriptBaseMixin';
import pubsub from 'omnistudio/pubsub';
export default class LwcForCraCalculation extends OmniscriptBaseMixin(LightningElement) {
@track jsonData;
renderedCallback(){
//register the pubsub event
pubsub.register('omniscript_step', {
data: this.handleOmniStepLoadData.bind(this),
});
}
handleOmniStepLoadData(data) {
// perform logic to handle the pubsub data from the Step
//console.log('pubsub data -- '+ JSON.stringify(data) );
this.jsonData = data.omniJsonData ;
console.log('jsonData -- '+ JSON.stringify(this.jsonData) );
}
}