FranckFreiburger / http-vue-loader

load .vue files from your html/js
MIT License
1.49k stars 274 forks source link

Needs to output error messages when .vue file script contains errors #100

Closed ryangriggs closed 3 years ago

ryangriggs commented 4 years ago

This is an awesome library and apparently one of a kind. The problem is that attempting to import a .vue file containing script errors renders only a ReferenceError: "responseText is not defined" error in the browser console, and does not give any indication of where the error(s) exists in the script. This is basically a nightmare for debugging. Please add a debug/development mode which outputs verbose error messages when the .vue file contains errors. Or at the very least, point to the line number or give some sort of hint about why the script can't be loaded.

SupremeSalvatore commented 4 years ago

+1 For this feature or solution/workaround.