`import` and `require` in the same file?

I'm trying to use https://github.com/luin/ioredis and https://github.com/rse/tika-server/tree/master in the same project. When trying to build a Docker image out of the project, I can't seem to get it working as ioredis needs to be imported and tika-server required. What is that interaction about? Any clues how to get this working or what I may have set up wrong?
GitHub
GitHub - luin/ioredis: šŸš€ A robust, performance-focused, and full-fe...
šŸš€ A robust, performance-focused, and full-featured Redis client for Node.js. - GitHub - luin/ioredis: šŸš€ A robust, performance-focused, and full-featured Redis client for Node.js.
GitHub
GitHub - rse/tika-server: Apache Tika Server as a Background Servic...
Apache Tika Server as a Background Service in Node.js - GitHub - rse/tika-server: Apache Tika Server as a Background Service in Node.js
1 Reply
ergusto
ergustoā€¢15mo ago
You should be able to import TikaServer from "tika-server"; without any issues