• Ещё ошибка в node, как исправить?

    @aksai
    в чем проблема?

    [nodemon] restarting due to changes...
    [nodemon] starting `node index.js`
    F:\web_site\online-store\server\node_modules\express\lib\router\route.js:211
    throw new Error(msg);
    ^

    Error: Route.get() requires a callback function but got a [object Undefined]
    at Route. [as get] (F:\web_site\online-store\server\node_modules\express\lib\router\route.js:211:15)
    at app. [as get] (F:\web_site\online-store\server\node_modules\express\lib\application.js:499:19)
    at Object. (F:\web_site\online-store\server\routes\deviceRouter.js:7:8)
    at Module._compile (node:internal/modules/cjs/loader:1275:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
    at Module.load (node:internal/modules/cjs/loader:1133:32)
    at Module._load (node:internal/modules/cjs/loader:972:12)
    at Module.require (node:internal/modules/cjs/loader:1157:19)
    at require (node:internal/modules/helpers:119:18)
    at Object. (F:\web_site\online-store\server\routes\index.js:3:22)

    Node.js v19.8.1
    [nodemon] app crashed - waiting for file changes before starting...
    Ответ написан
    Комментировать