事件:'module.require.error'
\Event: 'module.require.error'
-
event<Object> 包含以下属性\
event<Object> containing the following properties-
id参数传递给require()。模块名称。\
idArgument passed torequire(). Module name. -
parentFilename尝试 require(id) 的模块的名称。\
parentFilenameName of the module that attempted to require(id).
-
-
error<Error>
require() 抛出错误时触发。参见 error 事件。
\Emitted when a require() throws an error. See error event.