Looking to incorporate a utils service into my Vue component:
import utilities from './utils';
export default {
name: 'grid',
props: {
'gridInit': { type: Object, require: true },
'gridDataInit' : { type: Array, required: true }
},
data: function() {
return {
gridData: [],
}
},
created: function(){
this.gridData = utilities.transformRawData(this.gridDataInit, this.gridInit.check);
},
}
Encountering an issue:
[Vue warn]: Error in created hook: "ReferenceError: utils is not defined"
How do I resolve this problem while maintaining the project structure with utils services?