Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
avdheshb opened this issue Jun 12, 2019 · 0 comments
Open

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

avdheshb opened this issue Jun 12, 2019 · 0 comments

Comments

@avdheshb
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant