.qrc Error when compiling

Hi, I have added and imported a js file to use in QGC. I am getting the following error while compiling.

qrc:/qml/PlanView.qml:46 Script qrc:/qml/dragObject.js unavailable

qrc:/qml/dragObject.js:-1 No such file or directory

What would be the reason?