Open aryzing opened 2 months ago
It’s not a require
call in the package, it’s a require
call of the package. The way attw works is it essentially generates a fake file like
const _ = require("the-pkg")
and sees what happens. I agree the text could be more clear.
Thank you for clarifying, that makes sense! :facepalm: Happy to close if not going to use the issue for rewording
Currently, when
attw
fails, the error message may look something like,The immediate question that comes to mind is: where is the import causing the failure? It would save considerable time and add clarity to the error message if the location of the incorrect module import was logged.