You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since work is currently being done on the autoloader (#3, #11) I thought I'd ask - any interest in letting autoloader errors just happen?
The autoloader transforms import errors into a "Failed to autoload controller: ..." message. While writing a stimulus controller, I made a SyntaxError by importing a wrong module name, and had to stick a debugger into the catch statement to dig it out.
IMHO if something fails to load, swallowing the error a) confuses development, and b) will almost certainly break something downstream anyways unless your controller was entirely cruft.
At the minimum, it should console.log the error, no?
The text was updated successfully, but these errors were encountered:
Since work is currently being done on the autoloader (#3, #11) I thought I'd ask - any interest in letting autoloader errors just happen?
The autoloader transforms import errors into a "Failed to autoload controller: ..." message. While writing a stimulus controller, I made a
SyntaxError
by importing a wrong module name, and had to stick a debugger into the catch statement to dig it out.IMHO if something fails to load, swallowing the error a) confuses development, and b) will almost certainly break something downstream anyways unless your controller was entirely cruft.
At the minimum, it should console.log the error, no?
The text was updated successfully, but these errors were encountered: