abreits / amqp-ts

AmqpSimple, a RabbitMQ tested Amqp library written in and for Typescript
MIT License
133 stars 37 forks source link

"Path must be a string. Received undefined" when requiring via REPL #20

Open Sammons opened 7 years ago

Sammons commented 7 years ago

The error traces to

https://github.com/abreits/amqp-ts/blob/master/src/amqp-ts.ts#L17

I've only seen it in the repl, It goes away if I set AMQPTS_APPLICATIONNAME in the env, but it seems a little unnecessary to kill the require if it isn't set.

to reproduce, open a node repl in a folder that has amqp-ts installed in the node_modules. Then require('amqp-ts')