[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shiny-server in debian



Hi Nilesh,

On 2022-03-24 00:25, Nilesh Patra wrote:
> I uploaded rewire to NEW. On testing locally with rewire, I get:
> 
> | TypeError: send.mime.define is not a function
> |    at Object.<anonymous> (/home/nilesh/packages/shinyserv/shiny-server/lib/router/directory-router.js:27:11)
> |    at Module._compile (internal/modules/cjs/loader.js:999:30)
> |    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> |    at Module.load (internal/modules/cjs/loader.js:863:32)
> 
> Does not quite ring a bell, maybe wil take a look next weekend.

Thanks a lot for packaging rewire! I confirm I get the same error.
Looking deeper into it, the problem seems to be that node-mime-types has
dropped define() in v2.0.0, as per
/usr/share/doc/node-mime-types/HISTORY.md.gz:

2.0.0 / 2014-09-02
==================

  * Use `mime-db`
  * Remove `.define()`

So shiny-server needs to be patched to register 'text/R' mimetype in
more up-to-date manner.

Best,
Andrius


Reply to: