事件:'module.require.error'


¥Event: 'module.require.error'

  • event <Object> 包含以下属性

    ¥event <Object> containing the following properties

    • id 参数传递给 require()。模块名称。

      ¥id Argument passed to require(). Module name.

    • parentFilename 尝试 require(id) 的模块的名称。

      ¥parentFilename Name of the module that attempted to require(id).

  • error <Error>

require() 抛出错误时触发。参见 error 事件

¥Emitted when a require() throws an error. See error event.