Skip to content

Module '"http"' has no exported member 'ServerRequest' #1

Description

@avdheshb

Seems like the code is not working as several modules seem to be depreceated and outdated. Below is the list of steps i performed.

  1. extracted the code in a directory
  2. ran 'npm install'. Got below warnings during install:-

npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated joi@14.3.1: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of @sinonjs/samsam

  1. after this ran 'npm start' and it failed with below erros:-

_> getting-started@1.0.0 prestart /var/www/html/hvp/mongo

npm run build:current

getting-started@1.0.0 build:current /var/www/html/hvp/mongo
lb-tsc

node_modules/@loopback/http-server/dist8/src/http-server.d.ts(2,10): error TS2305: Module '"http"' has no exported member 'ServerRequest'.
node_modules/@loopback/rest/dist8/src/rest.server.d.ts(7,10): error TS2305: Module '"http"' has no exported member 'ServerRequest'.
node_modules/@loopback/testlab/dist8/src/client.d.ts(12,68): error TS2694: Namespace '"http"' has no exported member 'ServerRequest'.
node_modules/@loopback/testlab/dist8/src/shot.d.ts(4,10): error TS2305: Module '"http"' has no exported member 'ServerRequest'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! getting-started@1.0.0 build:current: lb-tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the getting-started@1.0.0 build:current 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! /home/ubuntu/.npm/_logs/2019-06-12T13_57_53_708Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! getting-started@1.0.0 prestart: npm run build:current
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the getting-started@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! /home/avdhesh/.npm/_logs/2019-06-12T13_57_53_748Z-debug.log

2019-06-12T13_57_53_748Z-debug.log

Kindly suggest a solution.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions