Git Product home page Git Product logo

Comments (7)

vladfrangu avatar vladfrangu commented on September 24, 2024 3

This has been fixed as of @vladfrangu/[email protected], sorry about that.

from discord.js.

OIRNOIR avatar OIRNOIR commented on September 24, 2024

Workaround:
PNPM:
Add to your package.json

"pnpm": {
	"overrides": {
		"@vladfrangu/async_event_emitter": "2.2.2"
	}
}

NPM (untested):
Add to your package.json

"overrides": {
	"@vladfrangu/async_event_emitter": "2.2.2"
}

from discord.js.

kai-notifi avatar kai-notifi commented on September 24, 2024

+1 Seeing this issue too. Looks like an issue with https://github.com/vladfrangu/async_event_emitter

from discord.js.

OIRNOIR avatar OIRNOIR commented on September 24, 2024

You're right. There is an open issue over there: vladfrangu/async_event_emitter#2

from discord.js.

NoOneWasTaken avatar NoOneWasTaken commented on September 24, 2024

As @OIRNOIR stated the workaround for NPM might not work so all you can do is override it directly in package.json.
Follow the simple steps (NPM Users):

Change the following code in node_modules/@vladfrangu/async_event_emitter/package.json:

Line 5: "main": "./dist/index.cjs",
Line 18 and 22: "default": "./dist/index.cjs"

This should fix the error hupefully :)
Credits

from discord.js.

aCursedComrade avatar aCursedComrade commented on September 24, 2024

As @OIRNOIR stated the workaround for NPM might not work so all you can do is override it directly in package.json. Follow the simple steps (NPM Users):

Change the following code in node_modules/@vladfrangu/async_event_emitter/package.json:

Line 5: "main": "./dist/index.cjs",
Line 18 and 22: "default": "./dist/index.cjs"

This should fix the error hupefully :) Credits

This works as temporary fix but it will quickly be overridden by npm when you try to manage packages.

I can confirm the fix suggested by @OIRNOIR is working for npm. You need add that override to your package.json and do npm i for npm to do the changes.

from discord.js.

NoOneWasTaken avatar NoOneWasTaken commented on September 24, 2024

As @OIRNOIR stated the workaround for NPM might not work so all you can do is override it directly in package.json. Follow the simple steps (NPM Users):
Change the following code in node_modules/@vladfrangu/async_event_emitter/package.json:

Line 5: "main": "./dist/index.cjs",
Line 18 and 22: "default": "./dist/index.cjs"

This should fix the error hupefully :) Credits

This works as temporary fix but it will quickly be overridden by npm when you try to manage packages.

I can confirm the fix suggested by @OIRNOIR is working for npm. You need add that override to your package.json and do npm i for npm to do the changes.

That works too! I just choose this as I am only using 1 package for the entire project (only discord.js)
Also doesn't work if you use yarn so you need to use npm or use yarn resolutions.

from discord.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.