Comments (7)
This has been fixed as of @vladfrangu/[email protected], sorry about that.
from discord.js.
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.
+1 Seeing this issue too. Looks like an issue with https://github.com/vladfrangu/async_event_emitter
from discord.js.
You're right. There is an open issue over there: vladfrangu/async_event_emitter#2
from discord.js.
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.
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.
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 donpm 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)
- Unhandled 'error' event emitted, received [object Object] HOT 19
- Bad typings for auto moderation target type in audit logs
- Network errors still happening HOT 4
- TypeError: thread.members._add is not a function HOT 4
- Application Emojis HOT 2
- Client being destroyed before ready event when shard receives unexpected response 520 HOT 1
- Bot crash due to TypeError: Cannot read properties of undefined (reading 'get') handing THREAD_MEMBERS_UPDATE packet HOT 2
- Error [GuildMembersTimeout]: Members didn't arrive in time.
- Music is not playing in voice channel HOT 2
- WebSocketManager trying to access shard info while shard or shardId could be undefined HOT 6
- InteractionWebhook methods crash the app if an invalid token is provided HOT 4
- Unexpected end of JSON input when using `ZlibNative` & `zlib-stream` transport compression HOT 1
- Add USE_EXTERNAL_APPS Permission to permissionOverwrites HOT 1
- message.mentions.users.first() returns undefined HOT 2
- Group buttons produce no data in version `14.15.3` HOT 2
- Newly created emojis aren't added to cache HOT 4
- Error: Specified member is not UserResolvable. - TypeError [InvalidType]: Specified member is not a UserResolvable (ThreadMemberManager.add ) HOT 3
- Add type safety to interface AuditLogChange
- OAuth2 method for token revoke endpoint HOT 2
- Error happens when trying to edit a followup message: [Could not find the channel where this message came from in the cache!] HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.js.