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

npm install fails: 'TS2349: This expression is not callable' #1019

Closed
christroutner opened this issue Nov 10, 2021 · 2 comments · Fixed by #1020
Closed

npm install fails: 'TS2349: This expression is not callable' #1019

christroutner opened this issue Nov 10, 2021 · 2 comments · Fixed by #1020
Labels
need/triage Needs initial labeling and prioritization

Comments

@christroutner
Copy link

  • Version:

0.33.0

  • Platform:

Linux trout-dev 5.11.0-34-generic #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

  • Subsystem:

N/A

Severity:

High

Description:

Trying to install the master branch (commit a335fda) as well as the latest release (v0.33.0) commit, both fail on npm install

Node version: v14.17.6
npm version: 7.23.0
OS: Ubuntu 20.4

Steps to reproduce the error:

  • git clone the repository.
  • (optional) git checkout v0.33.0
  • Run npm install and notice the following error:
npm ERR! code 1
npm ERR! path /home/trout/tmp/js-libp2p
npm ERR! command failed
npm ERR! command sh -c aegir build --no-bundle
npm ERR! [06:03:45] Clean ./dist [started]
npm ERR! [06:03:45] Clean ./dist [completed]
npm ERR! [06:03:45] Generate types [started]
npm ERR! src/nat-manager.js(118,11): error TS2349: This expression is not callable.
npm ERR!   Type 'typeof import("/home/trout/tmp/js-libp2p/node_modules/private-ip/lib/index")' has no call signatures.
npm ERR! [06:03:55] Generate types [failed]
npm ERR! [06:03:55] → Command failed with exit code 1: tsc --build /home/trout/tmp/js-libp2p/tsconfig-types.aegir.json
npm ERR! Command failed with exit code 1: tsc --build /home/trout/tmp/js-libp2p/tsconfig-types.aegir.json

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/trout/.npm/_logs/2021-11-10T14_04_00_258Z-debug.log

@christroutner christroutner added the need/triage Needs initial labeling and prioritization label Nov 10, 2021
@vasco-santos
Copy link
Member

vasco-santos commented Nov 12, 2021

Thanks for reporting this @christroutner

Likely some dependency creating this issue. I will get it fixed today

EDIT: The private-ip module released types but did not release it as a breaking change and the types seem broken

@vasco-santos
Copy link
Member

Temporarily added a ts ignore on our end until private-ip module gets fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants