Skip to content

The loopback#urlNotFound and loopback#errorHandler middleware file paths can not be resolved in test env #2201

@xixilive

Description

@xixilive

In my test env, it try to resolve paths from following positions:

  • try resolve loopback#urlNotFound at node_modules/loopback/server/middleware/urlNotFound.js
  • try resolve loopback#errorHandler at node_modules/loopback/server/middleware/errorHandler.js

and In fact, the correct filename are url-not-found.js and error-handler.js, In development and production environments, They are works, why?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions