Skip to content

ERR_PACKAGE_PATH_NOT_EXPORTED #9

@whoisstan

Description

@whoisstan

Hi,
using node21.3 and the latest 7 of your lib I am seeing this error when using it. Not a *.lock isue.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /usr/local/saga/node_modules/socket.io-amqp0/package.json

const socket_io     = require('socket.io')();
const { createAdapter } = require('socket.io-amqp0');
const RabbitMQ = require('../queue/rabbitmq');
const os = require('os');

module.exports = socket_io.adapter(createAdapter({
    instanceName: `${os.hostname()}-${process.pid}`,
    amqpConnection: RabbitMQ.getConnection
}));

Anything I need to do make it work? I reverted to an older version and works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions