Azure / API-Portal

API Portal lets you create and publish a customized site with API documentation, for free and without writing any code.
MIT License
173 stars 141 forks source link

"npm start" results in error "TS2339: Property 'getType' does not exist on type 'typeof import...." #25

Closed mschmieder closed 3 years ago

mschmieder commented 3 years ago

Hello,

I just wanted to test the current main-line but when executing

cd catalog
npm install
npm start 

the process dies with the following error:

ERROR in "/Users/XXXX/api-portal/catalog/node_modules/@paperbits/core/publishing/assetPublisher.ts
    [tsl] ERROR in "/Users/XXXX/api-portal/catalog/node_modules/@paperbits/core/publishing/assetPublisher.ts(17,38)
          TS2339: Property 'getType' does not exist on type 'typeof import("/Users/XXXX/api-portal/catalog/node_modules/@types/mime/index")'.

My system is MacOS

> node --version 
v16.4.0
> npn --version
7.19.1
> sw_vers
ProductName:    macOS
ProductVersion: 11.4
BuildVersion:   20F71
alfechner commented 3 years ago

I found TS types package @types/mime missing for the mime package in the devDependencies. It is specified in an outdated version in package-lock.json, though.

You can fix locally by adding the current version of the package to the devDependencies of you package.json file.