-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Description / Steps to reproduce / Feature proposal
Just created a new lb4 app with lb4 app command.
Current Behavior
npm start does not work as expected and I can't run the app. This is the output:
> noghtechin@1.0.0 prestart /Users/mamal/Projects/JS/noghtechin
> npm run build
> noghtechin@1.0.0 build /Users/mamal/Projects/JS/noghtechin
> lb-tsc
node_modules/@loopback/boot/index.d.ts(6,15): error TS2307: Cannot find module './dist8'.
node_modules/@loopback/context/index.d.ts(6,15): error TS2307: Cannot find module './dist8'.
node_modules/@loopback/core/index.d.ts(6,15): error TS2307: Cannot find module './dist8'.
node_modules/@loopback/openapi-v3/index.d.ts(6,15): error TS2307: Cannot find module './dist8'.
node_modules/@loopback/rest/index.d.ts(6,15): error TS2307: Cannot find module './dist8'.
node_modules/@loopback/testlab/index.d.ts(6,15): error TS2307: Cannot find module './dist8'.
src/application.ts(1,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/core/index"' has no exported member 'ApplicationConfig'.
src/application.ts(2,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RestApplication'.
src/application.ts(2,26): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RestServer'.
src/application.ts(2,38): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RestBindings'.
src/application.ts(7,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/boot/index"' has no exported member 'BootMixin'.
src/application.ts(7,20): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/boot/index"' has no exported member 'Booter'.
src/application.ts(7,28): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/boot/index"' has no exported member 'Binding'.
src/application.ts(15,10): error TS2339: Property 'sequence' does not exist on type 'NoghtechinApplication'.
src/application.ts(17,10): error TS2339: Property 'projectRoot' does not exist on type 'NoghtechinApplication'.
src/application.ts(19,10): error TS2339: Property 'bootOptions' does not exist on type 'NoghtechinApplication'.
src/application.ts(32,31): error TS2339: Property 'getServer' does not exist on type 'NoghtechinApplication'.
src/controllers/ping.controller.ts(1,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'Request'.
src/controllers/ping.controller.ts(1,18): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RestBindings'.
src/controllers/ping.controller.ts(2,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/openapi-v3/index"' has no exported member 'get'.
src/controllers/ping.controller.ts(3,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/context/index"' has no exported member 'inject'.
src/index.ts(2,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/core/index"' has no exported member 'ApplicationConfig'.
src/index.ts(8,13): error TS2339: Property 'boot' does not exist on type 'NoghtechinApplication'.
src/sequence.ts(1,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/context/index"' has no exported member 'inject'.
src/sequence.ts(3,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'FindRoute'.
src/sequence.ts(4,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'InvokeMethod'.
src/sequence.ts(5,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'ParseParams'.
src/sequence.ts(6,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'Reject'.
src/sequence.ts(7,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RequestContext'.
src/sequence.ts(8,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RestBindings'.
src/sequence.ts(9,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'Send'.
src/sequence.ts(10,3): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'SequenceHandler'.
test/ping.controller.acceptance.ts(1,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/testlab/index"' has no exported member 'createClientForHandler'.
test/ping.controller.acceptance.ts(1,33): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/testlab/index"' has no exported member 'supertest'.
test/ping.controller.acceptance.ts(2,9): error TS2305: Module '"/Users/mamal/Projects/JS/noghtechin/node_modules/@loopback/rest/index"' has no exported member 'RestServer'.
test/ping.controller.acceptance.ts(15,15): error TS2339: Property 'boot' does not exist on type 'NoghtechinApplication'.
test/ping.controller.acceptance.ts(24,15): error TS2339: Property 'stop' does not exist on type 'NoghtechinApplication'.
test/ping.controller.acceptance.ts(40,24): error TS2339: Property 'getServer' does not exist on type 'NoghtechinApplication'.
And this is the output of lb4 -v:
@loopback/cli version: 0.20.1
@loopback/* dependencies:
- @loopback/authentication: ^0.11.1
- @loopback/boot: ^0.12.1
- @loopback/build: ^0.6.12
- @loopback/context: ^0.12.1
- @loopback/core: ^0.11.1
- @loopback/metadata: ^0.9.1
- @loopback/openapi-spec-builder: ^0.8.1
- @loopback/openapi-v3-types: ^0.8.1
- @loopback/openapi-v3: ^0.12.1
- @loopback/repository-json-schema: ^0.10.1
- @loopback/repository: ^0.14.1
- @loopback/rest: ^0.19.1
- @loopback/testlab: ^0.11.1
- @loopback/docs: ^0.15.1
- @loopback/example-hello-world: ^0.9.1
- @loopback/example-log-extension: ^0.11.1
- @loopback/example-rpc-server: ^0.10.1
- @loopback/example-todo: ^0.14.1
- @loopback/dist-util: ^0.3.4
- @loopback/service-proxy-proxy: ^0.4.0
- @loopback/service-proxy: ^0.6.1
- @loopback/http-caching-proxy: ^0.3.1
- @loopback/http-server: ^0.3.1
- @loopback/example-todo-list: ^0.2.1
I already saw #1405 but it seems a bit old and my current version of lb is far newer from recommended version there. 🤔
Metadata
Metadata
Assignees
Labels
No labels