-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Description
node version: v10.14.0
npm version: 6.9.0
@loopback/cli version: 1.8.2
@loopback/* dependencies:
- @loopback/authentication: ^1.0.15
- @loopback/boot: ^1.1.0
- @loopback/build: ^1.3.2
- @loopback/context: ^1.7.0
- @loopback/core: ^1.1.8
- @loopback/metadata: ^1.0.8
- @loopback/openapi-spec-builder: ^1.1.0
- @loopback/openapi-v3-types: ^1.0.8
- @loopback/openapi-v3: ^1.3.0
- @loopback/repository-json-schema: ^1.3.4
- @loopback/repository: ^1.1.8
- @loopback/rest: ^1.8.0
- @loopback/testlab: ^1.1.0
- @loopback/docs: ^1.10.0
- @loopback/example-hello-world: ^1.1.6
- @loopback/example-log-extension: ^1.1.6
- @loopback/example-rpc-server: ^1.1.5
- @loopback/example-todo: ^1.5.1
- @loopback/example-soap-calculator: ^1.4.1
- @loopback/service-proxy: ^1.0.10
- @loopback/http-caching-proxy: ^1.0.9
- @loopback/http-server: ^1.1.8
- @loopback/example-todo-list: ^1.5.1
- @loopback/dist-util: ^0.4.0
- @loopback/rest-explorer: ^1.1.11
- @loopback/tslint-config: ^2.0.2
- @loopback/example-express-composition: ^1.2.1
Following official tutorial https://v4.loopback.io/getting-started.html but application won't start when entering npm start.
Current Behavior
Follow steps to install loopback 4 and create application.
Use all defaults options as is.
When entering npm start, build is complaining with following output.
npm start
> trait-d-union@1.0.0 prestart /Users/GUL/Documents/Missions/BetaGouv/trait-d-union-backoffice/trait-d-union
> npm run build
> trait-d-union@1.0.0 build /Users/GUL/Documents/Missions/BetaGouv/trait-d-union-backoffice/trait-d-union
> lb-tsc es2017 --outDir dist
../node_modules/@types/jest/index.d.ts:27:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'beforeEach' must be of type 'HookFunction', but here has type 'Lifecycle'.
27 declare var beforeEach: jest.Lifecycle;
~~~~~~~~~~
../node_modules/@types/jest/index.d.ts:29:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'afterEach' must be of type 'HookFunction', but here has type 'Lifecycle'.
29 declare var afterEach: jest.Lifecycle;
~~~~~~~~~
../node_modules/@types/jest/index.d.ts:30:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'describe' must be of type 'SuiteFunction', but here has type 'Describe'.
30 declare var describe: jest.Describe;
~~~~~~~~
../node_modules/@types/jest/index.d.ts:32:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'xdescribe' must be of type 'PendingSuiteFunction', but here has type 'Describe'.
32 declare var xdescribe: jest.Describe;
~~~~~~~~~
../node_modules/@types/jest/index.d.ts:33:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'it' must be of type 'TestFunction', but here has type 'It'.
33 declare var it: jest.It;
~~
../node_modules/@types/jest/index.d.ts:35:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'xit' must be of type 'PendingTestFunction', but here has type 'It'.
35 declare var xit: jest.It;
~~~
../node_modules/@types/jest/index.d.ts:36:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'test' must be of type 'TestFunction', but here has type 'It'.
36 declare var test: jest.It;
~~~~
node_modules/@types/node/module.d.ts:2:5 - error TS2300: Duplicate identifier 'mod'.
2 export = NodeJS.Module;
~~~~~~~~~~~~~~~~~~~~~~~
../../../../../node_modules/@types/requirejs/index.d.ts:38:11
38 export = mod;
~~~
'mod' was also declared here.
../../../../../node_modules/@types/requirejs/index.d.ts:38:11 - error TS2300: Duplicate identifier 'mod'.
38 export = mod;
~~~
node_modules/@types/node/module.d.ts:2:5
2 export = NodeJS.Module;
~~~~~~~~~~~~~~~~~~~~~~~
'mod' was also declared here.
../../../../../node_modules/@types/requirejs/index.d.ts:422:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire', but here has type 'Require'.
422 declare var require: Require;
~~~~~~~
Found 10 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! trait-d-union@1.0.0 build: `lb-tsc es2017 --outDir dist`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the trait-d-union@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/GUL/.npm/_logs/2019-03-18T21_22_06_184Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! trait-d-union@1.0.0 prestart: `npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the trait-d-union@1.0.0 prestart script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/GUL/.npm/_logs/2019-03-18T21_22_06_203Z-debug.logExpected Behavior
Follow steps to install loopback 4 and create application.
Use all defaults options as is.
When entering npm start, output shows no error and application is launched.
Metadata
Metadata
Assignees
Labels
No labels