Unpredictable error in vue cli 3 project


]: Failed to mount component: template or render function not defined.

found in

---> <Anonymous>
       <App> at src/App.vue

I get this often , thing is It suddenly goes away too , when I do npm cache clean /delete and reinstall node modules etc .

I have tried running build with vue runtime and without it .

i have read all the threads about template syntax,render function etc BUT I BELIEVE THIS ERROR MESSAGE IS WRONGLY THROWN and some issue with cache or tools . otherwise how does it work sometimes and sometimes not for the same code version : ( . ANyone faced anything similar to this ?


Solved. This was a mistake on my part .I had wrongly used the dynamic import syntax , forgot the arrow function syntax