Skip to content

TypeScript Compilation Fails #673

@pags

Description

@pags

Summary

TSError: ⨯ Unable to compile TypeScript:
server/bin/index.ts:81:49 - error TS2349: This expression is not callable.
  Type 'typeof import("Parsr/node_modules/file-type/index")' has no call signatures.

81   let fileType: { ext: string; mime: string } = filetype(fs.readFileSync(filePath));

Steps To Reproduce
Steps to reproduce the behavior:

  1. npm i
  2. npm run run:debug -- --input-file samples/t1.pdf --output-folder dist/ --document-name example --config server/defaultConfig.json --pretty-logs

Environment

  • Reference commit/version: dd2bc04
  • OS: Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions