Unable to build apk

When I run

npm run build-cordova-android

It gives me the following error.

X:\ila\build\build-cordova.js:13
const hash = entry.split('index.')[1].split('.js')[0];   
TypeError: Cannot read properties of undefined (reading 'split')
type or paste code here