Unpredictable error in vue cli 3 project

vue-cli

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

found in

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

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 ?


#2

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