Cannot start the application. Error: Cannot find module 'lb4/lb3app/server/server' #10372
Unanswered
anudhuri23
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to migrate our existing loopback3 application into loopback4

I followed the steps from https://github.com/loopbackio/loopback-next/tree/master/examples/lb3-application
When I am running npm start, I am getting below error
Cannot start the application. Error: Cannot find module '/home/lcuser/src/middleware-graphql-lb4/lb3app/server/server'
is it trying to find dir?
When I command ls I got bellow
Please help me on this
Whole stack
`Cannot start the application. Error: Cannot find module '/home/lcuser/src/middleware-graphql-lb4/lb3app/server/server'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Function.Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Lb3AppBooter.loadAndBootTheApp (/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/booter-lb3app/src/lb3app.booter.ts:98:20)
at Lb3AppBooter.load (/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/booter-lb3app/src/lb3app.booter.ts:57:31)
at Bootstrapper.boot (/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/boot/src/bootstrapper.ts:123:28)
at MiddlewareGraphqlLb4Application.boot (/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/boot/src/mixins/boot.mixin.ts:112:7)
at main (/home/lcuser/src/middleware-graphql-lb4/src/index.ts:7:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/booter-lb3app/dist/lb3app.booter.js',
'/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/booter-lb3app/dist/lb3app.booter.component.js',
'/home/lcuser/src/middleware-graphql-lb4/node_modules/@loopback/booter-lb3app/dist/index.js',
'/home/lcuser/src/middleware-graphql-lb4/dist/application.js',
'/home/lcuser/src/middleware-graphql-lb4/dist/index.js'
]
}
`
Beta Was this translation helpful? Give feedback.
All reactions