-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Nextjs + @discordjs/core - Module not found: Can't resolve 'zlib-sync' #9695
Comments
Try importing from |
It might a typescript quirk, but if you’re on the latest version that import should work. Try ignoring the error and running it. |
Not a Typescript quirk, you'll need to set moduleResolution to node16 in your tsconfig.json |
did a //@ts-ignore and it worked ! thanks |
Which package is this bug report for?
discordjs/core
Issue description
I am currently encountering what appears to be an issue with Next.js while running a project with its latest version. After placing the code within an API route and then executing "npm run dev", I'm experiencing a module not found error.
Steps to reproduce are as follows:
Upon following these steps, the stated module not found error shows Interestingly, when i do a manual installation of the package, webpack throws an additional error stating that it cannot compile.
Code sample
Versions
"@discordjs/core": "^0.6.0",
"next": "13.4.9",
nodejs : v18.12.1
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: