eng.helewa's avatar

clear cache of imported module

Hi, I have a problem with: import routes from 'vue-auto-routing'.

This plugin reads your vue files and auto-generates routs inside vue-auto-routing/index.js. The problem happens when you create a new vue file, the routes generated correctly but import routes from 'vue-auto-routing' still importing a cached version of that file. I'v tried import routes from 'vue-auto-routing?v=12387686235208234'. and it worked for me.

Is there any way to solve this automatically?

0 likes
2 replies
eng.helewa's avatar

Yes, It worked thank you.

Process errors will appear momentarily but moving the routes to watched scope will force mix to recompile. Not perfect but it's way better than killing the process and rerun it again :)

Please or to participate in this conversation.