8000 ERR_PACKAGE_PATH_NOT_EXPORTED · Issue #9 · thinkalpha/socket.io-amqp0 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ERR_PACKAGE_PATH_NOT_EXPORTED #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
whoisstan opened this issue Dec 14, 2023 · 3 comments
Open

ERR_PACKAGE_PATH_NOT_EXPORTED #9

whoisstan opened this issue Dec 14, 2023 · 3 comments

Comments

@whoisstan
Copy link

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.

@TomieAi
Copy link
TomieAi commented Feb 23, 2024

same

@neobie
Copy link
neobie commented Jun 2, 2024

is this only compatible with es6 only ?

@abhemanyus
Copy link
abhemanyus commented Jun 18, 2024

I can never figure out node's package management, so I pasted the adapter source code into my project and it works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0